Pārlūkot izejas kodu

增加OkHttp配置文件读取

tags/v1.0.0^2
林万龙 pirms 3 gadiem
vecāks
revīzija
cb19e1409f
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      src/main/java/com/telpo/dipperposition/server/DipperPositionServer.java

+ 1
- 1
src/main/java/com/telpo/dipperposition/server/DipperPositionServer.java Parādīt failu

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



Notiek ielāde…
Atcelt
Saglabāt