标签:port boot 多个 art logs log tail .repo cse
原文地址:spring boot 2.0 整合 elasticsearch NoNodeAvailableException
原文说的有点问题,下面贴出我的配置:
码云项目地址:https://gitee.com/11230595/springboot-elasticsearch
elasticsearch.yml
cluster.name: my-application
network.host: 0.0.0.0
http.port: 9200
transport.tcp.port: 9300
transport.tcp.compress: true
application.properties
# elasticsearch.yml 文件中的 cluster.name spring.data.elasticsearch.cluster-name=my-application # elasticsearch 调用地址,多个使用“,”隔开 spring.data.elasticsearch.repositories.enabled=true spring.data.elasticsearch.cluster-nodes=localhost:9300 spring.data.elasticsearch.properties.path.logs=./elasticsearch/log spring.data.elasticsearch.properties.path.data=./elasticsearch/data
spring boot 2.0 整合 elasticsearch NoNodeAvailableException
标签:port boot 多个 art logs log tail .repo cse
原文地址:https://www.cnblogs.com/liran123/p/10306639.html