wangb@gyee-china.com 1 year ago
parent
commit
36e8faa137

+ 25 - 0
realtime/generationXK-service/src/main/java/com/gyee/generation/controller/CacheController.java

@@ -0,0 +1,25 @@
+package com.gyee.generation.controller;
+
+import com.gyee.generation.model.vo.AjaxResult;
+import com.gyee.generation.service.initalcache.CacheService;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import javax.annotation.Resource;
+
+@RestController
+@RequestMapping("//cachae")
+public class CacheController {
+
+    @Resource
+    private CacheService cacheService;
+    @GetMapping(value = "/qd")
+    public AjaxResult getinformation(String wpId) throws Exception {
+
+            cacheService.initRedisCache();
+
+            return AjaxResult.success();
+
+    }
+}