慕粉5592549
2018-06-12 08:50
***************************
APPLICATION FAILED TO START
***************************
Description:
Field client in test.Application required a bean of type 'org.elasticsearch.client.transport.TransportClient' that could not be found.
Action:
Consider defining a bean of type 'org.elasticsearch.client.transport.TransportClient' in your configuration.
没加bean注解
可以尝试:1.确认es服务已有启动。2.确认安装的es和引入的es的jar包是同一版本。3.@Configuration注解的类中transportClient方法有加@bean注解
ElasticSearch入门
67740 学习 · 302 问题
相似问题