使用SpringData鏈接ElasticSearch7.6.2確認路徑配置正確一直報如下錯誤:node
failed to load elasticsearch nodes : org.elasticsearch.client.transport.NoNodeAvailableException:elasticsearch
None of the configured nodes are available: [{#transport#-1}{uWHhZacNR9mbfojQOayyAg}{127.0.0.1}{127.0.0.1:9300}]ide
最後確認是使用的SpringData版本與ElasticSearch版本不匹配致使的,ElasticSearch7須要使用SpringData ElasticSearch4以上版本,測試
但如今4版本還沒正式發佈,開發測試環境使用把ElasticSearch改成6.8.3版本,功能正常開發