疯狂的狮子li
2021-11-26 7892ec5a596e6d1fce07bef7661d802dc3fb6afb
ruoyi-demo/src/main/java/com/ruoyi/demo/controller/RedisLockController.java
@@ -9,7 +9,6 @@
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@@ -74,13 +73,4 @@
        return AjaxResult.success("操作成功", value);
    }
    /**
     * 测试spring-cache注解
     */
    @ApiOperation("测试spring-cache注解")
    @Cacheable(value = "test", key = "#key")
    @GetMapping("/testCache")
    public AjaxResult<String> testCache(String key) {
        return AjaxResult.success("操作成功", key);
    }
}