|
|
@@ -1,34 +0,0 @@
|
|
1
|
|
-package com.unissoft.controller;
|
|
2
|
|
-
|
|
3
|
|
-import com.unissoft.result.ResultView;
|
|
4
|
|
-import io.swagger.annotations.ApiOperation;
|
|
5
|
|
-import org.springframework.beans.factory.annotation.Value;
|
|
6
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
7
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
8
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
9
|
|
-
|
|
10
|
|
-@RestController
|
|
11
|
|
-@RequestMapping("/test")
|
|
12
|
|
-public class TestController {
|
|
13
|
|
-
|
|
14
|
|
- @Value("${ymllocation}")
|
|
15
|
|
- private String ymllocation;
|
|
16
|
|
-
|
|
17
|
|
- @Value("${ymlconfig}")
|
|
18
|
|
- private String ymlconfig;
|
|
19
|
|
-
|
|
20
|
|
- @GetMapping("/getName")
|
|
21
|
|
- public ResultView getName() {
|
|
22
|
|
- String name = "测试demo";
|
|
23
|
|
- return ResultView.success(name);
|
|
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
|
|
-
|
|
34
|
|
-}
|