update sentinel add hot param flow rule case

pull/719/head
fangjian0423 6 years ago
parent fd3cd6a1a8
commit e812061a75

@ -23,11 +23,17 @@ public class TestController {
return "Hello"; return "Hello";
} }
@RequestMapping(value = "/test", method = RequestMethod.GET) @RequestMapping(value = "/aa", method = RequestMethod.GET)
public String test1() { @SentinelResource("aa")
public String aa(int b, int a) {
return "Hello test"; return "Hello test";
} }
@RequestMapping(value = "/test", method = RequestMethod.GET)
public String test1() {
return "Hello test";
}
@RequestMapping(value = "/template", method = RequestMethod.GET) @RequestMapping(value = "/template", method = RequestMethod.GET)
public String client() { public String client() {
return restTemplate.getForObject("http://www.taobao.com/test", String.class); return restTemplate.getForObject("http://www.taobao.com/test", String.class);

@ -8,9 +8,9 @@
"strategy": 0 "strategy": 0
}, },
{ {
"resource": "p", "resource": "/test",
"controlBehavior": 0, "controlBehavior": 0,
"count": 1, "count": 0,
"grade": 1, "grade": 1,
"limitApp": "default", "limitApp": "default",
"strategy": 0 "strategy": 0

@ -1,6 +1,6 @@
[ [
{ {
"resource": "hotResource", "resource": "aa",
"count": 0, "count": 0,
"grade": 1, "grade": 1,
"limitApp": "default", "limitApp": "default",

Loading…
Cancel
Save