瀏覽代碼

Modify helloworld demo of README

master
xg1907 Eric Zhao 6 年之前
父節點
當前提交
d727f1cfb0
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      README.md

+ 2
- 1
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<FlowRule> rules = new ArrayList<FlowRule>();
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);
```


Loading…
取消
儲存