提交 2b28cbd2 编写于 作者: H haoxr

doc:导入新的nacos配置

上级 b2bd379b
......@@ -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));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册