Repository could not be registered

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


This is my Repository

This is my Configuration class

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.