我正在使用Spring-boot和Elasticsearch.该项目是使用jhipster创建的.
pom.xml包含:
<parent>
<artifactId>spring-boot-starter-parent</artifactId>
<groupId>org.springframework.boot</groupId>
<version>1.4.0.RELEASE</version>
<relativePath/>
</parent>
Run Code Online (Sandbox Code Playgroud)
和
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-elasticsearch</artifactId>
</dependency>
Run Code Online (Sandbox Code Playgroud)
在生产模式下,发生以下错误:
AbstractElasticsearchRepository : failed to load elasticsearch nodes :
org.elasticsearch.client.transport.NoNodeAvailableException: None of
the configured nodes are available: [{#transport#-1}{127.0.0.1}
{localhost/127.0.0.1:9300}]
Run Code Online (Sandbox Code Playgroud)
我该如何解决这个错误?