From 4f0e73ba97517ff9bbe1ce5e490a03214b3996cb Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期二, 30 十一月 2021 10:33:35 +0800 Subject: [PATCH] update 使用 hutool-jwt 替换老旧 jjwt 依赖 --- ruoyi-common/src/main/java/com/ruoyi/common/constant/Constants.java | 28 ++++++++++++---------------- 1 files changed, 12 insertions(+), 16 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 a871178..88a3c3b 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 @@ -1,12 +1,12 @@ package com.ruoyi.common.constant; + /** * 閫氱敤甯搁噺淇℃伅 * * @author ruoyi */ -public class Constants -{ +public class Constants { /** * UTF-8 瀛楃闆� */ @@ -48,6 +48,11 @@ public static final String LOGOUT = "Logout"; /** + * 娉ㄥ唽 + */ + public static final String REGISTER = "Register"; + + /** * 鐧诲綍澶辫触 */ public static final String LOGIN_FAIL = "Error"; @@ -66,6 +71,11 @@ * 闃查噸鎻愪氦 redis key */ public static final String REPEAT_SUBMIT_KEY = "repeat_submit:"; + + /** + * 闄愭祦 redis key + */ + public static final String RATE_LIMIT_KEY = "rate_limit:"; /** * 楠岃瘉鐮佹湁鏁堟湡锛堝垎閽燂級 @@ -122,18 +132,4 @@ */ public static final String SYS_DICT_KEY = "sys_dict:"; - /** - * 璧勬簮鏄犲皠璺緞 鍓嶇紑 - */ - public static final String RESOURCE_PREFIX = "/profile"; - - /** - * RMI 杩滅▼鏂规硶璋冪敤 - */ - public static final String LOOKUP_RMI = "rmi://"; - - /** - * 璧勬簮鏄犲皠璺緞 鍓嶇紑 - */ - public static final String REDIS_LOCK_KEY = "redis_lock:"; } -- Gitblit v1.9.3