mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	fix 修复 限流注解 默认不填key生成重复问题
This commit is contained in:
		@@ -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 "";
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 限流时间,单位秒
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user