CacheController.java 695 B

12345678910111213141516171819202122232425
  1. package com.gyee.generation.controller;
  2. import com.gyee.generation.model.vo.AjaxResult;
  3. import com.gyee.generation.service.initalcache.CacheService;
  4. import org.springframework.web.bind.annotation.GetMapping;
  5. import org.springframework.web.bind.annotation.RequestMapping;
  6. import org.springframework.web.bind.annotation.RestController;
  7. import javax.annotation.Resource;
  8. @RestController
  9. @RequestMapping("//cachae")
  10. public class CacheController {
  11. @Resource
  12. private CacheService cacheService;
  13. @GetMapping(value = "/qd")
  14. public AjaxResult getinformation(String wpId) throws Exception {
  15. cacheService.initRedisCache();
  16. return AjaxResult.success();
  17. }
  18. }