|
@@ -0,0 +1,29 @@
|
|
1
|
+package com.xhkjedu.sexam.controller.system;
|
|
2
|
+
|
|
3
|
+import com.xhkjedu.sexam.config.ConfigKey;
|
|
4
|
+import com.xhkjedu.vo.ResultVo;
|
|
5
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
6
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
7
|
+import org.springframework.web.bind.annotation.RestController;
|
|
8
|
+
|
|
9
|
+import java.util.HashMap;
|
|
10
|
+import java.util.Map;
|
|
11
|
+
|
|
12
|
+/**
|
|
13
|
+ * @Description 读取配置文件
|
|
14
|
+ * @Author WN
|
|
15
|
+ * Date 2022/10/29 22:20
|
|
16
|
+ **/
|
|
17
|
+@RestController
|
|
18
|
+@RequestMapping("/tc")
|
|
19
|
+public class ToolConfigController {
|
|
20
|
+ //socket和图片识别地址
|
|
21
|
+ @PostMapping("/wsf")
|
|
22
|
+ public ResultVo info() {
|
|
23
|
+ Map map = new HashMap<>();
|
|
24
|
+ map.put("examsocket", ConfigKey.examscoket);
|
|
25
|
+ map.put("examface",ConfigKey.examface);
|
|
26
|
+
|
|
27
|
+ return new ResultVo(0, "获取成功",map);
|
|
28
|
+ }
|
|
29
|
+}
|