解决办法如下:
Settings settings = Settings.settingsBuilder()
.put("cluster.name", "*****").put("client.transport.ping_timeout", "60s").build();
加入红色字体部分即可
解决办法如下:
Settings settings = Settings.settingsBuilder()
.put("cluster.name", "*****").put("client.transport.ping_timeout", "60s").build();
加入红色字体部分即可
转载于:https://my.oschina.net/suncf/blog/610944