1
0
mirror of https://gitee.com/mirrors/Spring-Cloud-Alibaba.git synced 2021-06-26 13:25:11 +08:00
This commit is contained in:
flystar32
2018-07-27 19:32:57 +08:00
parent 0ce2df89ab
commit c4cbbf41e2
4 changed files with 11 additions and 11 deletions

View File

@@ -23,7 +23,7 @@
1. 接入限流埋点
1. HTTP埋点
Sentienl starter 默认为所有的 HTTP 服务提供了限流埋点,如果只想对 HTTP 服务进行限流,那么只需要引入依赖,无需修改代码。
Sentinel starter 默认为所有的 HTTP 服务提供了限流埋点,如果只想对 HTTP 服务进行限流,那么只需要引入依赖,无需修改代码。
1. 自定义埋点
如果需要对某个特定的方法进行限流或降级,可以通过 @EnableSentinel 来完成限流的埋点,示例代码如下