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/RedisLockController.java |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/ruoyi-demo/src/main/java/com/ruoyi/demo/controller/RedisLockController.java b/ruoyi-demo/src/main/java/com/ruoyi/demo/controller/RedisLockController.java
index f6649ed..a720246 100644
--- a/ruoyi-demo/src/main/java/com/ruoyi/demo/controller/RedisLockController.java
+++ b/ruoyi-demo/src/main/java/com/ruoyi/demo/controller/RedisLockController.java
@@ -5,6 +5,8 @@
 import com.baomidou.lock.annotation.Lock4j;
 import com.baomidou.lock.executor.RedissonLockExecutor;
 import com.ruoyi.common.core.domain.AjaxResult;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.cache.annotation.Cacheable;
@@ -20,6 +22,7 @@
  *
  * @author shenxinquan
  */
+@Api(value = "娴嬭瘯鍒嗗竷寮忛攣鐨勬牱渚�", tags = {"娴嬭瘯鍒嗗竷寮忛攣鐨勬牱渚�"})
 @Slf4j
 @RestController
 @RequestMapping("/demo/redisLock")
@@ -31,6 +34,7 @@
 	/**
 	 * 娴嬭瘯lock4j 娉ㄨВ
 	 */
+	@ApiOperation("娴嬭瘯lock4j 娉ㄨВ")
 	@Lock4j(keys = {"#key"})
 	@GetMapping("/testLock4j")
 	public  AjaxResult<String> testLock4j(String key,String value){
@@ -47,6 +51,7 @@
 	/**
 	 * 娴嬭瘯lock4j 宸ュ叿
 	 */
+	@ApiOperation("娴嬭瘯lock4j 宸ュ叿")
 	@GetMapping("/testLock4jLockTemaplate")
 	public  AjaxResult<String> testLock4jLockTemaplate(String key,String value){
 		final LockInfo lockInfo = lockTemplate.lock(key, 30000L, 5000L, RedissonLockExecutor.class);
@@ -72,6 +77,7 @@
 	/**
 	 * 娴嬭瘯spring-cache娉ㄨВ
 	 */
+	@ApiOperation("娴嬭瘯spring-cache娉ㄨВ")
 	@Cacheable(value = "test", key = "#key")
 	@GetMapping("/testCache")
 	public AjaxResult<String> testCache(String key) {

--
Gitblit v1.9.3