Browse Source

测试自定义key

pull/1/head
Yangkai.Shen 5 years ago
parent
commit
054546e9d8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      spring-boot-demo-ratelimit-redis/src/main/java/com/xkcoding/ratelimit/redis/controller/TestController.java

+ 1
- 1
spring-boot-demo-ratelimit-redis/src/main/java/com/xkcoding/ratelimit/redis/controller/TestController.java View File

@@ -31,7 +31,7 @@ public class TestController {
return Dict.create().set("msg", "hello,world!").set("description", "我一直都在,卟离卟弃");
}

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


Loading…
Cancel
Save