How to configure neo4j and cassandra repositories in same spring boot application

后端 未结 2 373
鱼传尺愫
鱼传尺愫 2021-01-24 08:42

I have configured neo4j and cassandra repositories separately with spring boot using spring-data. However, when I try to use two repositories in the same projects it doesn\'t wo

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-24 09:19

    This looks like the Spring Boot autoconfiguration is not able to handle multiple Spring Data projects at the same time.

    Please refer to documentation for Spring Data Neo4j and Spring Data Cassandra

    In particular you should point SDN module to neo4j repositories only

    @EnableNeo4jRepositories(basePackages = "org.test.project.repositories.neo")
    

    and similarly for cassandra.

提交回复
热议问题