1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
| package com.hx.common.annotations.repeat;
|
| import java.lang.annotation.*;
|
| /**
| * 重复校验注解
| * @author CJH
| */
| @Target({ElementType.TYPE, ElementType.METHOD})
| @Retention(RetentionPolicy.RUNTIME)
| @Documented
| public @interface RequestRepeat {
| /**是否重复校验,默认true*/
| boolean isRepeat() default true;
| /**重复间隔时间,毫秒,默认1000毫秒*/
| long millisecond() default 1000;
| }
|
|