This is an automated email from the ASF dual-hosted git repository.
carryxyh 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 ba2985b fix routing rule mistake (#143)
ba2985b is described below
commit ba2985bf2c2f2822d615364f644bec40e7b0a200
Author: min <[email protected]>
AuthorDate: Fri Sep 7 17:01:28 2018 +0800
fix routing rule mistake (#143)
---
docs/en-us/user/demos/routing-rule.md | 2 +-
docs/zh-cn/user/demos/routing-rule.md | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/en-us/user/demos/routing-rule.md
b/docs/en-us/user/demos/routing-rule.md
index b15fa1e..9082757e 100644
--- a/docs/en-us/user/demos/routing-rule.md
+++ b/docs/en-us/user/demos/routing-rule.md
@@ -9,7 +9,7 @@ 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("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")));
```
其中:
diff --git a/docs/zh-cn/user/demos/routing-rule.md
b/docs/zh-cn/user/demos/routing-rule.md
index 24bd73c..b840d5c 100644
--- a/docs/zh-cn/user/demos/routing-rule.md
+++ b/docs/zh-cn/user/demos/routing-rule.md
@@ -9,7 +9,7 @@
```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("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")));
```
其中: