
com.nxyfan.framework.common.annotation.CommonRepeatSubmit Maven / Gradle / Ivy
package com.nxyfan.framework.common.annotation;
import java.lang.annotation.*;
import java.util.concurrent.TimeUnit;
/**
*
* Describe: 自定义注解防止表单重复提交
* Author: Administrator
* Create Time: 2024年4月27日 下午3:02:28
* Copyright @ 2024 51LIFE
*/
@Inherited
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface CommonRepeatSubmit {
/**
* 间隔时间(ms),小于此时间视为重复提交
*/
int interval() default 5000;
TimeUnit timeUnit() default TimeUnit.MILLISECONDS;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy