com.addplus.server.action.config.aspect.RestUnique Maven / Gradle / Ivy
The newest version!
package com.addplus.server.action.config.aspect;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import java.util.concurrent.TimeUnit;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* 接口防止重复提交
*/
@Documented
@Retention(RUNTIME)
@Target(ElementType.METHOD)
public @interface RestUnique {
String key() default "rest_unique:";
TimeUnit timeUnit() default TimeUnit.SECONDS;
int time() default 1;
long frequency() default 1L;
}