Easysearch、Elasticsearch 还是 Opensearch,是个问题

springboot2.1.12.RELEASE集成ES7.10.1

Elasticsearch | 作者 VTracy | 发布于2020年12月09日 | 阅读数:2537

***************************
APPLICATION FAILED TO START
***************************

Description:

Field courseRepository in com.example.demo.controller.CourseController required a bean named 'elasticsearchTemplate' that could not be found.

The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)


Action:

Consider defining a bean named 'elasticsearchTemplate' in your configuration.
已邀请:

VTracy - 90后IT女

赞同来自:

修改了pom文件后
 Adding transport node : 127.0.0.1:9300
2020-12-09 14:14:18.251 ERROR 14872 --- [           main] .d.e.r.s.AbstractElasticsearchRepository : failed to load elasticsearch nodes : org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available: [{#transport#-1}{rWEcwpb7R0G4-juYqyaF0g}{127.0.0.1}{127.0.0.1:9300}]
2020-12-09 14:14:18.290 ERROR 14872 --- [           main] .d.e.r.s.AbstractElasticsearchRepository : failed to load elasticsearch nodes : org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available: [{#transport#-1}{rWEcwpb7R0G4-juYqyaF0g}{127.0.0.1}{127.0.0.1:9300}]

要回复问题请先登录注册