com.myb.annotation.ResubmitCheck Maven / Gradle / Ivy
package com.myb.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* 接口幂等性校验,包括参数和过期时间
*
* @Author meiyubin
* @Date 2023/9/12
* @DESC
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface ResubmitCheck {
int expireTime() default 10;//过期时间默认为10s
}