Преглед на файлове

增加配置文件读取

tags/v1.0.0^2
林万龙 преди 4 години
родител
ревизия
b1bcdc4027
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. +1
    -1
      src/main/java/com/telpo/dipperposition/controller/DipperPositionController.java
  2. +1
    -1
      src/main/resources/bootstrap-dev.yaml

+ 1
- 1
src/main/java/com/telpo/dipperposition/controller/DipperPositionController.java Целия файл

@@ -26,6 +26,6 @@ public class DipperPositionController {

@RequestMapping("/getPos")
public String getPos() {
return "Helle world!" + ContextLoader.getCurrentWebApplicationContext().toString();
return "Helle world!"; //ContextLoader.getCurrentWebApplicationContext().toString();
}
}

+ 1
- 1
src/main/resources/bootstrap-dev.yaml Целия файл

@@ -2,7 +2,7 @@ spring:
main:
allow-bean-definition-overriding: true
application:
name: dipperposition-service-dev.yaml
name: dipperposition-service-dev
cloud:
nacos:
config:


Loading…
Отказ
Запис