Skip to content

Commit 001a7e9

Browse files
committed
ApiBoot RateLimiter 添加全局限流数量配置
1 parent 9cfb3f6 commit 001a7e9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

api-boot-project/api-boot-autoconfigure/src/main/java/org/minbox/framework/api/boot/autoconfigure/ratelimiter/ApiBootRateLimiterProperties.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,13 @@ public class ApiBootRateLimiterProperties {
4646
* 限流请求地址前缀
4747
*/
4848
private String[] interceptorUrl = {"/**"};
49+
/**
50+
* 全局QPS配置
51+
* 默认每秒限流10次请求
52+
*/
53+
private Long globalQps = 10L;
54+
/**
55+
* 开启全局QPS配置
56+
*/
57+
private boolean enableGlobalQps = false;
4958
}

0 commit comments

Comments
 (0)