mirror of
https://gitee.com/youlaitech/youlai-mall.git
synced 2025-01-05 18:42:22 +08:00
doc:导入新的nacos配置
This commit is contained in:
parent
b2bd379bd8
commit
2b28cbd203
@ -29,7 +29,7 @@ public class RestHighLevelClientConfig {
|
|||||||
public RestHighLevelClient restHighLevelClient() {
|
public RestHighLevelClient restHighLevelClient() {
|
||||||
|
|
||||||
HttpHost[] hosts = clusterNodes.stream()
|
HttpHost[] hosts = clusterNodes.stream()
|
||||||
.map(this::buildHttpHost)
|
.map(this::buildHttpHost) // eg: new HttpHost("127.0.0.1", 7200, "http")
|
||||||
.toArray(HttpHost[]::new);
|
.toArray(HttpHost[]::new);
|
||||||
return new RestHighLevelClient(RestClient.builder(hosts));
|
return new RestHighLevelClient(RestClient.builder(hosts));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user