首页>代码>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日

38735466 LV11
5小时前
sos0531 LV8
昨天
vincemokea LV9
9月18日
lipanlong LV10
8月21日
别让自己无聊 LV13
8月13日
简约时尚 LV13
8月13日
康日澜 LV10
8月2日
denliv_hui LV14
8月1日
3844297369
7月1日
暂无贡献等级
krispeng LV15
6月15日