|
@@ -1,6 +1,5 @@
|
|
|
package com.ruoyi.common.annotation;
|
|
|
|
|
|
-import com.ruoyi.common.constant.CacheConstants;
|
|
|
import com.ruoyi.common.enums.LimitType;
|
|
|
|
|
|
import java.lang.annotation.*;
|
|
@@ -18,7 +17,7 @@ public @interface RateLimiter {
|
|
|
* 限流key,支持使用Spring el表达式来动态获取方法上的参数值
|
|
|
* 格式类似于 #code.id #{#code}
|
|
|
*/
|
|
|
- String key() default CacheConstants.RATE_LIMIT_KEY;
|
|
|
+ String key() default "";
|
|
|
|
|
|
/**
|
|
|
* 限流时间,单位秒
|