From b3541e975898e17a6cbc1a9ea776f3ec7e91d39a Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期六, 12 六月 2021 20:13:35 +0800 Subject: [PATCH] update 优化 使用 hutool 替换 ruoyi 自带工具类 解决部分方法过期与高版本JDK不兼容问题 --- ruoyi-common/src/main/java/com/ruoyi/common/constant/Constants.java | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/constant/Constants.java b/ruoyi-common/src/main/java/com/ruoyi/common/constant/Constants.java index c9f8d0a..137969a 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/constant/Constants.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/constant/Constants.java @@ -2,7 +2,7 @@ /** * 閫氱敤甯搁噺淇℃伅 - * + * * @author ruoyi */ public class Constants @@ -63,6 +63,11 @@ public static final String LOGIN_TOKEN_KEY = "login_tokens:"; /** + * 闃查噸鎻愪氦 redis key + */ + public static final String REPEAT_SUBMIT_KEY = "repeat_submit:"; + + /** * 楠岃瘉鐮佹湁鏁堟湡锛堝垎閽燂級 */ public static final Integer CAPTCHA_EXPIRATION = 2; @@ -121,4 +126,9 @@ * 璧勬簮鏄犲皠璺緞 鍓嶇紑 */ public static final String RESOURCE_PREFIX = "/profile"; + + /** + * 璧勬簮鏄犲皠璺緞 鍓嶇紑 + */ + public static final String REDIS_LOCK_KEY = "redis_lock:"; } -- Gitblit v1.9.3