Parcourir la source

增加OkHttp配置文件读取

tags/v1.0.0^2
林万龙 il y a 3 ans
Parent
révision
cb19e1409f
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      src/main/java/com/telpo/dipperposition/server/DipperPositionServer.java

+ 1
- 1
src/main/java/com/telpo/dipperposition/server/DipperPositionServer.java Voir le fichier

@@ -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);




Chargement…
Annuler
Enregistrer