支持自定义注解实现接口限流

This commit is contained in:
RuoYi
2021-08-17 14:08:18 +08:00
parent 03cf98d3c9
commit 5c155f5f11
8 changed files with 225 additions and 15 deletions

View File

@ -74,6 +74,11 @@ public class Constants
*/
public static final String REPEAT_SUBMIT_KEY = "repeat_submit:";
/**
* 限流 redis key
*/
public static final String RATE_LIMIT_KEY = "rate_limit:";
/**
* 验证码有效期(分钟)
*/