Skip to content

Commit

Permalink
✨ spring-boot-demo-ratelimit-guava 完成,测试不同方法限流
Browse files Browse the repository at this point in the history
  • Loading branch information
xkcoding committed Sep 20, 2019
1 parent 3e1f24e commit f10c69f
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -30,4 +30,11 @@ public Dict test2() {
log.info("【test2】被执行了。。。。。");
return Dict.create().set("msg", "hello,world!").set("description", "我一直都在,卟离卟弃");
}

@RateLimiter(value = 2.0, timeout = 300)
@GetMapping("/test3")
public Dict test3() {
log.info("【test3】被执行了。。。。。");
return Dict.create().set("msg", "hello,world!").set("description", "别想一直看到我,不信你快速刷新看看~");
}
}

0 comments on commit f10c69f

Please sign in to comment.