问题:
springboot连接我用docker启动的es服务时报错,None of the configured nodes are available
解决方案:
1、先通过http://localhost:9200/查看参数cluster_name 和 springboot里配置的参数cluster_name是否一致,如果不一致,要修改成一致
2、如果通过修改cluster_name参数仍然无法解决,这时候就要看下Spring Data Elasticsearch 依赖 和 Elasticsearch的版本对应关系了
| Spring Data Elasticsearch | Elasticsearch |
|---|---|
| 3.2.x | 6.7.2 |
| 3.1.x | 6.2.2 |
| 3.0.x | 5.5.0 |
| 2.1.x | 2.4.0 |
| 2.0.x | 2.2.0 |
| 1.3.x | 1.5.2 |

已有 0 条评论