首页>代码>SpringBoot+vue前后端分离-模板项目,适合新手小白二次开发,太香了>/EasyJavaTemplate/SpringBoot/src/main/java/cn/wujiangbo/annotation/RateLimit.java
package cn.wujiangbo.annotation;
import java.lang.annotation.*;
/**
* 用于防刷限流的注解
* 默认是5秒内只能调用一次
* @author 波波老师(weixin:javabobo0513)
*/
@Target({ ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface RateLimit {
/** 限流的key */
String key() default "limit:";
/** 周期,单位是秒 */
int cycle() default 5;
/** 请求次数 */
int count() default 1;
/** 默认提示信息 */
String msg() default "请勿重复点击";
}
最近下载更多
denliv_hui LV14
8月1日
5418888 LV3
5月13日
quyan5632 LV2
2月10日
huasir2018 LV14
1月29日
AprilZk LV3
2024年12月12日
zolscy LV24
2024年11月26日
微信网友_7134912998903808 LV15
2024年8月29日
叁卍石 LV5
2024年8月21日
Oxygeni LV7
2024年7月14日
llllllK LV5
2024年5月13日

最近浏览