doc:导入新的nacos配置

This commit is contained in:
haoxr 2021-03-08 21:49:51 +08:00
parent b2bd379bd8
commit 2b28cbd203

View File

@ -29,7 +29,7 @@ public class RestHighLevelClientConfig {
public RestHighLevelClient restHighLevelClient() {
HttpHost[] hosts = clusterNodes.stream()
.map(this::buildHttpHost)
.map(this::buildHttpHost) // eg: new HttpHost("127.0.0.1", 7200, "http")
.toArray(HttpHost[]::new);
return new RestHighLevelClient(RestClient.builder(hosts));
}