From 0b077806196ceb8a68af93f00880ccc70aee50c2 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期四, 07 七月 2022 18:08:14 +0800 Subject: [PATCH] add 整合 springdoc 移除 knife4j --- ruoyi-demo/src/main/java/com/ruoyi/demo/controller/RedisCacheController.java | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ruoyi-demo/src/main/java/com/ruoyi/demo/controller/RedisCacheController.java b/ruoyi-demo/src/main/java/com/ruoyi/demo/controller/RedisCacheController.java index 9fc9307..b80a9a8 100644 --- a/ruoyi-demo/src/main/java/com/ruoyi/demo/controller/RedisCacheController.java +++ b/ruoyi-demo/src/main/java/com/ruoyi/demo/controller/RedisCacheController.java @@ -2,8 +2,8 @@ import com.ruoyi.common.core.domain.R; import com.ruoyi.common.utils.redis.RedisUtils; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; import lombok.RequiredArgsConstructor; import org.springframework.cache.annotation.CacheEvict; import org.springframework.cache.annotation.CachePut; @@ -21,7 +21,7 @@ */ // 绫荤骇鍒� 缂撳瓨缁熶竴閰嶇疆 //@CacheConfig(cacheNames = "redissonCacheMap") -@Api(value = "spring-cache 婕旂ず妗堜緥", tags = {"spring-cache 婕旂ず妗堜緥"}) +@Tag(name ="spring-cache 婕旂ず妗堜緥", description = "spring-cache 婕旂ず妗堜緥") @RequiredArgsConstructor @RestController @RequestMapping("/demo/cache") @@ -41,7 +41,7 @@ * <p> * cacheNames 涓洪厤缃枃浠跺唴 groupId */ - @ApiOperation("娴嬭瘯 @Cacheable") + @Operation(summary = "娴嬭瘯 @Cacheable") @Cacheable(cacheNames = "redissonCacheMap", key = "#key", condition = "#key != null") @GetMapping("/test1") public R<String> test1(String key, String value) { @@ -56,7 +56,7 @@ * <p> * cacheNames 涓� 閰嶇疆鏂囦欢鍐� groupId */ - @ApiOperation("娴嬭瘯 @CachePut") + @Operation(summary = "娴嬭瘯 @CachePut") @CachePut(cacheNames = "redissonCacheMap", key = "#key", condition = "#key != null") @GetMapping("/test2") public R<String> test2(String key, String value) { @@ -71,7 +71,7 @@ * <p> * cacheNames 涓� 閰嶇疆鏂囦欢鍐� groupId */ - @ApiOperation("娴嬭瘯 @CacheEvict") + @Operation(summary = "娴嬭瘯 @CacheEvict") @CacheEvict(cacheNames = "redissonCacheMap", key = "#key", condition = "#key != null") @GetMapping("/test3") public R<String> test3(String key, String value) { @@ -83,7 +83,7 @@ * 鎵嬪姩璁剧疆杩囨湡鏃堕棿10绉� * 11绉掑悗鑾峰彇 鍒ゆ柇鏄惁鐩哥瓑 */ - @ApiOperation("娴嬭瘯璁剧疆杩囨湡鏃堕棿") + @Operation(summary = "娴嬭瘯璁剧疆杩囨湡鏃堕棿") @GetMapping("/test6") public R<Boolean> test6(String key, String value) { RedisUtils.setCacheObject(key, value); -- Gitblit v1.9.3