xuefei
2020-12-10 eeeb7233935ea9b10e99043bdbf740ef86c9bf20
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package cn.cetc54.platform.core.common.annotation;
 
import java.lang.annotation.*;
 
/**
 * 限流注解
 * @author
 */
@Target(ElementType.METHOD)//作用于方法上
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface RateLimiter {
 
    int limit() default 5;
 
    long timeout() default 1000;
}