mirror of
https://gitee.com/youlaitech/youlai-mall.git
synced 2025-01-04 01:52:21 +08:00
doc:导入新的nacos配置
This commit is contained in:
parent
b2bd379bd8
commit
2b28cbd203
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user