|
@@ -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();
|
|
|
+
|
|
|
+ }
|
|
|
+}
|