Browse Source

增加配置文件读取

tags/v1.0.0^2
林万龙 3 years ago
parent
commit
9f4859b0c3
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/main/java/com/telpo/dipperposition/controller/DipperPositionController.java

+ 3
- 1
src/main/java/com/telpo/dipperposition/controller/DipperPositionController.java View File

@@ -53,7 +53,7 @@ public class DipperPositionController {
content = configService.getConfig(dataId, group, 5000); content = configService.getConfig(dataId, group, 5000);
log.info(content); log.info(content);


content = configService.getConfig(dataId, group, 5000);
content = configService.getConfig(positionId, group, 5000);
log.info(content); log.info(content);


boolean isRemoveOk = configService.removeConfig(dataId, group); boolean isRemoveOk = configService.removeConfig(dataId, group);
@@ -64,6 +64,8 @@ public class DipperPositionController {
log.info(content); log.info(content);
Thread.sleep(30000); Thread.sleep(30000);


System.out.println(content);

return "Helle world!"; //ContextLoader.getCurrentWebApplicationContext().toString(); return "Helle world!"; //ContextLoader.getCurrentWebApplicationContext().toString();
} }
} }

Loading…
Cancel
Save