Spring-boot2.0.1.BUILD-SNAPSHOT整合Elasticsearch报failed to load elasticsearch nodes错误解决办法

 

spring-boot整合es的application.properties的默认配置为:

 

spring.data.elasticsearch.cluster-nodes=localhost:9200

 

将端口号改成9300即可解决failed to load elasticsearch nodes错误

 

拓展:如果es的安装版本为2.x,那么spring-boot对应的版本要大于1.4.0.RC1版本!【结果来源于stackoverflow

posted @ 2018-06-11 17:55  Mr.Yanphet  阅读(1208)  评论(0编辑  收藏  举报