在使用spring-data进行ES操作的时候,报找不到Repository错误
1 | Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. |
解决办法就是在启动类加上@EnableElasticsearchRepositories(basePackages = “com.xxximpl.repository”)
在使用spring-data进行ES操作的时候,报找不到Repository错误
1 | Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. |
解决办法就是在启动类加上@EnableElasticsearchRepositories(basePackages = “com.xxximpl.repository”)