BootYK/Boot-common/src/main/java/com/bw/common/annotation/PreventRepeatLimited.java

27 lines
543 B
Java

package com.bw.common.annotation;
import java.lang.annotation.*;
/**
* @ClassName PreventRepeatlimited
* @Description
* @Author zhengshixian
* @Date 2023/12/12 23:06
*/
@Inherited
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface PreventRepeatLimited {
/**
* 间隔时间(ms),小于此时间视为重复提交
*/
public int interVal() default 5;
/**
* 提示消息
*/
public String message() default "不允许重复提交,请稍候再试,限流";
}