You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by li...@apache.org on 2019/02/14 09:25:06 UTC

[incubator-dubbo-website] branch asf-site updated: Merge pull request #268, modify Routing Rules description.

This is an automated email from the ASF dual-hosted git repository.

liujun pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo-website.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 98579c2  Merge pull request #268, modify Routing Rules description.
98579c2 is described below

commit 98579c225829c999aec2363255e66f36e11f45d5
Author: nullcodeexecutor <co...@gmail.com>
AuthorDate: Thu Feb 14 17:25:01 2019 +0800

    Merge pull request #268, modify Routing Rules description.
---
 docs/en-us/user/demos/routing-rule.md            | 6 +++---
 docs/zh-cn/user/demos/routing-rule-deprecated.md | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/docs/en-us/user/demos/routing-rule.md b/docs/en-us/user/demos/routing-rule.md
index 790a722..2aca5ee 100644
--- a/docs/en-us/user/demos/routing-rule.md
+++ b/docs/en-us/user/demos/routing-rule.md
@@ -9,12 +9,12 @@ Writing routing rules to the registry is usually done by the monitoring center o
 ```java
 RegistryFactory registryFactory = ExtensionLoader.getExtensionLoader(RegistryFactory.class).getAdaptiveExtension();
 Registry registry = registryFactory.getRegistry(URL.valueOf("zookeeper://10.20.153.10:2181"));
-registry.register(URL.valueOf("condition://0.0.0.0/com.foo.BarService?category=routers&dynamic=false&rule=" + URL.encode("host = 10.20.153.10 => host = 10.20.153.11")));
+registry.register(URL.valueOf("route://0.0.0.0/com.foo.BarService?category=routers&dynamic=false&rule=" + URL.encode("host = 10.20.153.10 => host = 10.20.153.11")));
 ```
 
 其中:
 
-* `condition://` It indicates the type of routing rules, supports routing rules and script routing rules, and can be extended. **Required**。
+* `route://` It indicates the type of routing rules, supports routing rules and script routing rules, and can be extended. **Required**。
 * `0.0.0.0` It indicates that all IP addresses are valid. If you want to take effect for only one IP address, fill in the IP address. **Required**。
 * `com.foo.BarService` It indicates that the specified service is effective. **Required**。
 * `group=foo` It indicates that the specified service in specified group is effective. When absent, the specified service which dosen't configure group is effective.
@@ -190,4 +190,4 @@ The scope of the `request.tag` is for each invocation, using the attachment to p
 [^2]: Routing Rules Extension Point: [Route Extension](http://dubbo.apache.org/en-us/docs/dev/impls/router.html)   
 [^3]: Note: A service can only have one whitelist rule, otherwise the two rules will be filtered out.  
 [^4]: Note: Scripts have no sandbox constraints, can execute arbitrary code, and poses a backdoor risk.  
-[^5]: Support since `2.7.0`
\ No newline at end of file
+[^5]: Support since `2.7.0`
diff --git a/docs/zh-cn/user/demos/routing-rule-deprecated.md b/docs/zh-cn/user/demos/routing-rule-deprecated.md
index adfde20..376d356 100644
--- a/docs/zh-cn/user/demos/routing-rule-deprecated.md
+++ b/docs/zh-cn/user/demos/routing-rule-deprecated.md
@@ -9,12 +9,12 @@
 ```java
 RegistryFactory registryFactory = ExtensionLoader.getExtensionLoader(RegistryFactory.class).getAdaptiveExtension();
 Registry registry = registryFactory.getRegistry(URL.valueOf("zookeeper://10.20.153.10:2181"));
-registry.register(URL.valueOf("condition://0.0.0.0/com.foo.BarService?category=routers&dynamic=false&rule=" + URL.encode("host = 10.20.153.10 => host = 10.20.153.11")));
+registry.register(URL.valueOf("route://0.0.0.0/com.foo.BarService?category=routers&dynamic=false&rule=" + URL.encode("host = 10.20.153.10 => host = 10.20.153.11")));
 ```
 
 其中:
 
-* `condition://` 表示路由规则的类型,支持条件路由规则和脚本路由规则,可扩展,**必填**。
+* `route://` 表示路由规则的类型,支持条件路由规则和脚本路由规则,可扩展,**必填**。
 * `0.0.0.0` 表示对所有 IP 地址生效,如果只想对某个 IP 的生效,请填入具体 IP,**必填**。
 * `com.foo.BarService` 表示只对指定服务生效,**必填**。
 * `group=foo` 对指定服务的指定group生效,不填表示对未配置group的指定服务生效
@@ -190,4 +190,4 @@ RpcContext.getContext().setAttachment(Constants.REQUEST_TAG_KEY,"red");
 [^2]: 路由规则扩展点:[路由扩展](http://dubbo.apache.org/zh-cn/docs/dev/impls/router.html)
 [^3]: 注意:一个服务只能有一条白名单规则,否则两条规则交叉,就都被筛选掉了
 [^4]: 注意:脚本没有沙箱约束,可执行任意代码,存在后门风险
-[^5]: 该特性在 `2.7.0` 以上版本支持
\ No newline at end of file
+[^5]: 该特性在 `2.7.0` 以上版本支持