1
0
mirror of https://gitee.com/mirrors/Spring-Cloud-Alibaba.git synced 2021-06-26 13:25:11 +08:00

update sentinel add hot param flow rule case

This commit is contained in:
fangjian0423 2019-06-24 16:15:17 +08:00
parent fd3cd6a1a8
commit e812061a75
3 changed files with 11 additions and 5 deletions

View File

@ -23,6 +23,12 @@ public class TestController {
return "Hello"; return "Hello";
} }
@RequestMapping(value = "/aa", method = RequestMethod.GET)
@SentinelResource("aa")
public String aa(int b, int a) {
return "Hello test";
}
@RequestMapping(value = "/test", method = RequestMethod.GET) @RequestMapping(value = "/test", method = RequestMethod.GET)
public String test1() { public String test1() {
return "Hello test"; return "Hello test";

View File

@ -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

View File

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