ソースを参照

去掉测试代码

shengyang000 5 年 前
コミット
23830e9d6e
共有2 個のファイルを変更した1 個の追加35 個の削除を含む
  1. 0 34
      src/main/java/com/unissoft/controller/TestController.java
  2. 1 1
      src/main/resources/bootstrap.yml

+ 0 - 34
src/main/java/com/unissoft/controller/TestController.java

@@ -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
-}

+ 1 - 1
src/main/resources/bootstrap.yml

@@ -21,5 +21,5 @@ spring:
21 21
         enabled: true
22 22
         service-id: CSC-SZLS-CONFIG  # 注册中心的服务名
23 23
       profile: dev  # 指定配置文件的环境
24
-      label: master
24
+      label: develop # 分支 master
25 25
 ymllocation: csc-szls-oauth-inner