Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
06-27-2021 10:24 AM
Hello everyone! I have some problem with my Kotlin Spring application. I made controllers, services and repositories. When I am starting my app I catch this error
The bean 'moviesRepository', defined in xxxx.xxx.MoviesRepository defined in @EnableNeo4jRepositories declared on Application, could not be registered. A bean with that name has already been defined in xxxx.xxx.MoviesRepository defined in @EnableNeo4jRepositories declared on DatabaseConfig and overriding is disabled.
I use this build for app
Solved! Go to Solution.
06-28-2021 04:24 AM
Although this got already answered in Discord:
The declaration of @EnableNeo4jRepositories
twice cause the error.
The @Repository
annotation on a Spring Data repository should get removed in general (not related to the problem itself).
Also why I am here: why don't you use the spring-boot-starter-data-neo4j ? It takes care of enabling the repositories and configures the (transitive) depending driver instance based on the parameters you provide in the application.properties file.
06-28-2021 04:24 AM
Although this got already answered in Discord:
The declaration of @EnableNeo4jRepositories
twice cause the error.
The @Repository
annotation on a Spring Data repository should get removed in general (not related to the problem itself).
Also why I am here: why don't you use the spring-boot-starter-data-neo4j ? It takes care of enabling the repositories and configures the (transitive) depending driver instance based on the parameters you provide in the application.properties file.
All the sessions of the conference are now available online