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