From d727f1cfb084c077d9d596ebb634cbb80e50e5f1 Mon Sep 17 00:00:00 2001 From: xg1907 <1907487869@qq.com> Date: Fri, 27 Jul 2018 16:53:57 +0800 Subject: [PATCH] Modify helloworld demo of README --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0d52c69e..a916ad0f 100755 --- a/README.md +++ b/README.md @@ -79,9 +79,10 @@ If we want to limit the access times of the resource, we can define rules. The f ```java List rules = new ArrayList(); FlowRule rule = new FlowRule(); -rule.setResource("hello world"); +rule.setResource("HelloWorld"); // set limit qps to 20 rule.setCount(20); +rule.setGrade(RuleConstant.FLOW_GRADE_QPS); rules.add(rule); FlowRuleManager.loadRules(rules); ```