1 Star 0 Fork 0

cps007/spring-boot-model

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Submit.java 618 Bytes
一键复制 编辑 原始数据 按行查看 历史
jf 提交于 3年前 . 更新springboot版本
package cn.springboot.model.base.annotation;
import java.lang.annotation.*;
/**
* 自定义注解防止表单重复提交
*
* @author jf
*/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface Submit {
/**
* 设置请求次数上限,在于 triggerTime() 内
*
* @return
*/
int lockCount() default 4;
/**
* 锁定请求时间<p/>
* 单位:分钟
*
* @return
*/
long lockTime() default 60;
/**
* 触发重复提交时间
*
* @return
*/
long triggerTime() default 6;
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/cps007/spring-boot-model.git
git@gitee.com:cps007/spring-boot-model.git
cps007
spring-boot-model
spring-boot-model
dev

搜索帮助