Browse Source

增加配置文件读取

tags/v1.0.0^2
林万龙 3 years ago
parent
commit
12a8143c29
2 changed files with 3 additions and 1 deletions
  1. +1
    -1
      src/main/java/com/telpo/dipperposition/controller/DipperPositionController.java
  2. +2
    -0
      src/main/resources/bootstrap-dev.yaml

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

@@ -24,7 +24,7 @@ import java.util.List;
public class DipperPositionController {

@RequestMapping("/getPos")
public String getCampusListJson() {
public String getPos() {
return "Helle world!";
}
}

+ 2
- 0
src/main/resources/bootstrap-dev.yaml View File

@@ -1,4 +1,6 @@
spring:
profiles:
active: dev
main:
allow-bean-definition-overriding: true
application:


Loading…
Cancel
Save