ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/CacheConstants.java
@@ -24,9 +24,24 @@ public final static int PASSWORD_MAX_RETRY_COUNT = 5; /** * 密码锁定时间,默认10(分钟) * 密码锁定时间,默认15(分钟) */ public final static long PASSWORD_LOCK_TIME = 10; public final static long PASSWORD_LOCK_TIME = 15; /** * 登录限流缓存前缀 */ public static final String LOGIN_RATE_LIMIT_KEY = "login_rate_limit:"; /** * 登录限流窗口,默认60(秒) */ public static final long LOGIN_RATE_LIMIT_WINDOW = 60; /** * 单个维度在限流窗口内允许的最大登录次数 */ public static final int LOGIN_RATE_LIMIT_MAX_COUNT = 5; /** * 权限缓存前缀