From 82f1f5d0cf1b51a5d81915e842e01760f404fa74 Mon Sep 17 00:00:00 2001
From: 疯狂的狮子li <15040126243@163.com>
Date: 星期三, 20 十月 2021 13:07:16 +0800
Subject: [PATCH] update 优化xxl-job-admin相关pr代码 增加格式化日志输出与docker镜像

---
 ruoyi-demo/src/main/java/com/ruoyi/demo/controller/RedisCacheController.java |    9 +++++++++
 1 files changed, 9 insertions(+), 0 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 4588f13..5ef9d49 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
@@ -1,6 +1,8 @@
 package com.ruoyi.demo.controller;
 
 import com.ruoyi.common.core.domain.AjaxResult;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
 import lombok.RequiredArgsConstructor;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.cache.annotation.CacheEvict;
@@ -17,6 +19,7 @@
  */
 // 绫荤骇鍒� 缂撳瓨缁熶竴閰嶇疆
 //@CacheConfig(cacheNames = "redissonCacheMap")
+@Api(value = "spring-cache 婕旂ず妗堜緥", tags = {"spring-cache 婕旂ず妗堜緥"})
 @RequiredArgsConstructor(onConstructor_ = @Autowired)
 @RestController
 @RequestMapping("/demo/cache")
@@ -31,8 +34,12 @@
 	 * 濡傛灉娌℃湁,灏辫皟鐢ㄦ柟娉�,鐒跺悗鎶婄粨鏋滅紦瀛樿捣鏉�
 	 * 杩欎釜娉ㄨВ銆屼竴鑸敤鍦ㄦ煡璇㈡柟娉曚笂銆�
 	 *
+	 * 閲嶇偣璇存槑: 缂撳瓨娉ㄨВ涓ヨ皑涓庡叾浠栫瓫閫夋暟鎹姛鑳戒竴璧蜂娇鐢�
+	 * 渚嬪: 鏁版嵁鏉冮檺娉ㄨВ 浼氶�犳垚 缂撳瓨鍑荤┛ 涓� 鏁版嵁涓嶄竴鑷撮棶棰�
+	 *
 	 * cacheNames 涓洪厤缃枃浠跺唴 groupId
 	 */
+	@ApiOperation("娴嬭瘯 @Cacheable")
 	@Cacheable(cacheNames = "redissonCacheMap", key = "#key", condition = "#key != null")
 	@GetMapping("/test1")
 	public AjaxResult<String> test1(String key, String value){
@@ -47,6 +54,7 @@
 	 *
 	 * cacheNames 涓� 閰嶇疆鏂囦欢鍐� groupId
 	 */
+	@ApiOperation("娴嬭瘯 @CachePut")
 	@CachePut(cacheNames = "redissonCacheMap", key = "#key", condition = "#key != null")
 	@GetMapping("/test2")
 	public AjaxResult<String> test2(String key, String value){
@@ -61,6 +69,7 @@
 	 *
 	 * cacheNames 涓� 閰嶇疆鏂囦欢鍐� groupId
 	 */
+	@ApiOperation("娴嬭瘯 @CacheEvict")
 	@CacheEvict(cacheNames = "redissonCacheMap", key = "#key", condition = "#key != null")
 	@GetMapping("/test3")
 	public AjaxResult<String> test3(String key, String value){

--
Gitblit v1.9.3