Parameter 0 of constructor in required a bean of type 'java.lang.String' that could not be found

前端 未结 10 2461
深忆病人
深忆病人 2021-02-07 01:41

I am working on spring batch with spring boot 2.X application, actually its existing code i am checked out from git. While running the application it fails due to below error on

10条回答
  •  感情败类
    2021-02-07 02:09

    in my case, the issue was way different.

    @SpringBootApplication
    @EnableNeo4jRepositories("com.digital.api.repositories") // <-- This was non-existent.
    public class Application {
    
        public static void main(String[] args) {
            SpringApplication.run(Application.class, args);
        }
    }
    

    Look at the @EnableNeo4jRepositories annotation. The package defined, was non-existent. Try defining that package, and be careful that the Repository interfaces are based there. Otherwise, Spring will not find the repositories classes that it should load up!

提交回复
热议问题