|
|
@@ -1,17 +1,34 @@
|
|
1
|
1
|
package com.unissoft.controller;
|
|
2
|
2
|
|
|
|
3
|
+import com.unissoft.result.ResultView;
|
|
|
4
|
+import io.swagger.annotations.ApiOperation;
|
|
|
5
|
+import org.springframework.beans.factory.annotation.Value;
|
|
3
|
6
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
4
|
7
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
5
|
8
|
import org.springframework.web.bind.annotation.RestController;
|
|
6
|
|
-import com.unissoft.result.ResultView;
|
|
7
|
9
|
|
|
8
|
10
|
@RestController
|
|
9
|
11
|
@RequestMapping("/test")
|
|
10
|
12
|
public class TestController {
|
|
11
|
13
|
|
|
|
14
|
+ @Value("${ymllocation}")
|
|
|
15
|
+ private String ymllocation;
|
|
|
16
|
+
|
|
|
17
|
+ @Value("${ymlconfig}")
|
|
|
18
|
+ private String ymlconfig;
|
|
|
19
|
+
|
|
12
|
20
|
@GetMapping("/getName")
|
|
13
|
21
|
public ResultView getName() {
|
|
14
|
22
|
String name = "测试demo";
|
|
15
|
23
|
return ResultView.success(name);
|
|
16
|
24
|
}
|
|
|
25
|
+
|
|
|
26
|
+
|
|
|
27
|
+ @ApiOperation(value = "测试yml", notes = "")
|
|
|
28
|
+ @GetMapping("/authority_button/testYmllocation")
|
|
|
29
|
+ public ResultView testRedisPublish() {
|
|
|
30
|
+ return ResultView.success(ymllocation + "-----" + ymlconfig);
|
|
|
31
|
+ }
|
|
|
32
|
+
|
|
|
33
|
+
|
|
17
|
34
|
}
|