Skip to content

Commit 054546e

Browse files
committed
✅ 测试自定义key
1 parent 6320d75 commit 054546e

File tree

1 file changed

+1
-1
lines changed
  • spring-boot-demo-ratelimit-redis/src/main/java/com/xkcoding/ratelimit/redis/controller

1 file changed

+1
-1
lines changed

spring-boot-demo-ratelimit-redis/src/main/java/com/xkcoding/ratelimit/redis/controller/TestController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public Dict test2() {
3131
return Dict.create().set("msg", "hello,world!").set("description", "我一直都在,卟离卟弃");
3232
}
3333

34-
@RateLimiter(value = 2)
34+
@RateLimiter(value = 2, key = "测试自定义key")
3535
@GetMapping("/test3")
3636
public Dict test3() {
3737
log.info("【test3】被执行了。。。。。");

0 commit comments

Comments
 (0)