|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+package com.unissoft.serverRefresh;
|
|
|
2
|
+
|
|
|
3
|
+import com.unissoft.config.MySecurityMetadataSource;
|
|
|
4
|
+import com.unissoft.result.ResultView;
|
|
|
5
|
+import io.swagger.annotations.Api;
|
|
|
6
|
+import io.swagger.annotations.ApiOperation;
|
|
|
7
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
8
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
9
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
10
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
11
|
+
|
|
|
12
|
+/**
|
|
|
13
|
+ * 文件描述
|
|
|
14
|
+ *
|
|
|
15
|
+ * @author tongxi.xia
|
|
|
16
|
+ * @date 2020年12月24日 15:51
|
|
|
17
|
+ */
|
|
|
18
|
+@Api(description = "服务刷新控制器")
|
|
|
19
|
+@RestController
|
|
|
20
|
+@RequestMapping("/public")
|
|
|
21
|
+public class ServerRefresh {
|
|
|
22
|
+
|
|
|
23
|
+ @Autowired
|
|
|
24
|
+ private MySecurityMetadataSource mySecurityMetadataSource;
|
|
|
25
|
+
|
|
|
26
|
+ @ApiOperation(value = "根据地址刷新各服务权限")
|
|
|
27
|
+ @GetMapping("/loadResourceDefine")
|
|
|
28
|
+ public ResultView loadResourceDefine() {
|
|
|
29
|
+ mySecurityMetadataSource.loadResourceDefine();
|
|
|
30
|
+ return ResultView.success();
|
|
|
31
|
+ }
|
|
|
32
|
+}
|