|
@@ -44,7 +44,7 @@ public class DipperPositionServer { |
|
|
String dataId = "dipperposition-service"; |
|
|
String dataId = "dipperposition-service"; |
|
|
String group = "DEFAULT_GROUP"; |
|
|
String group = "DEFAULT_GROUP"; |
|
|
Properties properties = new Properties(); |
|
|
Properties properties = new Properties(); |
|
|
properties.put(PropertyKeyConst.SERVER_ADDR, ip4); |
|
|
|
|
|
|
|
|
properties.put(PropertyKeyConst.SERVER_ADDR, ip4.getHostAddress()); |
|
|
ConfigService configService = NacosFactory.createConfigService(properties); |
|
|
ConfigService configService = NacosFactory.createConfigService(properties); |
|
|
String content = configService.getConfig(dataId, group, 5000); |
|
|
String content = configService.getConfig(dataId, group, 5000); |
|
|
|
|
|
|
|
|