ES启动失败
2020-03-10 20:21:46.456 ERROR 11856 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPLICATION FAILED TO START *************************** Description: Field elasticsearchTemplate in com.lank.esdemo.controller.ESController required a bean of type 'org.springframework.data.elasticsearch.core.ElasticsearchTemplate' that could not be found. The injection point has the following annotations: - @org.springframework.beans.factory.annotation.Autowired(required=true) The following candidates were found but could not be injected: - Bean method 'elasticsearchTemplate' in 'ElasticsearchDataConfiguration.TransportClientConfiguration' not loaded because @ConditionalOnBean (types: org.elasticsearch.client.Client; SearchStrategy: all) did not find any beans of type org.elasticsearch.client.Client Action: Consider revisiting the entries above or defining a bean of type 'org.springframework.data.elasticsearch.core.ElasticsearchTemplate' in your configuration. Process finished with exit code 1
43
收起
正在回答 回答被采纳积分+1
1回答
Java架构师讲师团
2020-03-10 20:42:42
你的es版本是多少啊
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星