首页>代码>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 "请勿重复点击"; }

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 LV6
2024年7月14日
llllllK LV5
2024年5月13日
jc121140 LV3
2024年3月22日
wanglinddad LV55
2024年3月14日

daqfrq332
4月7日
暂无贡献等级
微信网友_6497953430949888 LV1
3月14日
PLVAE_514 LV2
3月7日
yuanshun LV7
2月18日
huangzhijing
2月11日
暂无贡献等级
quyan5632 LV2
2月10日
YYY_xxx_
2月5日
暂无贡献等级
huasir2018 LV14
1月29日
Hachi6 LV13
1月22日
huaua7676 LV30
1月10日