一:新建一个IpRequestOriginParser类,实现RequestOriginParser接口,配置如下 public class IpRequestOriginParser implements RequestOriginParser {/*** Parse the origin from given HTTP request.** param request HTTP request* return …
下图中请求url中param参数为axb,如果QPS超过5,就会限流
一:如下代码
RestController
public class ParamController {GetMapping("/param")SentinelResource(value "param", blockHandler "exHandler")p…