***************************
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.
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.
1 个回复
VTracy - 90后IT女
赞同来自:
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}]