|
|
@@ -1,44 +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
|
|
-
|
|
11
|
|
-@RestController
|
|
12
|
|
-@RequestMapping("/test")
|
|
13
|
|
-public class TestController {
|
|
14
|
|
-
|
|
15
|
|
-// @Autowired
|
|
16
|
|
-// private PublishService publishService;
|
|
17
|
|
-
|
|
18
|
|
- @Value("${ymllocation}")
|
|
19
|
|
- private String ymllocation;
|
|
20
|
|
-
|
|
21
|
|
- @Value("${ymlconfig}")
|
|
22
|
|
- private String ymlconfig;
|
|
23
|
|
-
|
|
24
|
|
- @ApiOperation(value = "测试yml", notes = "")
|
|
25
|
|
- @GetMapping("/authority_button/testYmllocation")
|
|
26
|
|
- public ResultView testRedisPublish() {
|
|
27
|
|
- return ResultView.success(ymllocation + "-----" + ymlconfig);
|
|
28
|
|
- }
|
|
29
|
|
-
|
|
30
|
|
-// @ApiOperation(value = "测试Redis发布", notes = "")
|
|
31
|
|
-// @GetMapping("/authority_button/testRedisPublish")
|
|
32
|
|
-// public ResultView testRedisPublish() {
|
|
33
|
|
-// MessageVO vo = new MessageVO();
|
|
34
|
|
-// vo.setTitle("aaa");
|
|
35
|
|
-// vo.setContent("测试");
|
|
36
|
|
-// vo.setFromUserId(1);
|
|
37
|
|
-// vo.setToUserId(5);
|
|
38
|
|
-// vo.setType(10);
|
|
39
|
|
-//
|
|
40
|
|
-// publishService.publish(GrainConstant.MQ_MSG_CHANNEL, vo);
|
|
41
|
|
-// return ResultView.success();
|
|
42
|
|
-// }
|
|
43
|
|
-
|
|
44
|
|
-}
|