This is an automated email from the ASF dual-hosted git repository.
iluo 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 196152c change the local-call info (#356)
196152c is described below
commit 196152c367d70613e94e963bac50f7d503ae3099
Author: huaifeng <[email protected]>
AuthorDate: Tue Apr 16 10:22:08 2019 +0800
change the local-call info (#356)
---
docs/zh-cn/user/demos/local-call.md | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/docs/zh-cn/user/demos/local-call.md
b/docs/zh-cn/user/demos/local-call.md
index 4fa3596..1b8dbb6 100644
--- a/docs/zh-cn/user/demos/local-call.md
+++ b/docs/zh-cn/user/demos/local-call.md
@@ -36,8 +36,7 @@
<dubbo:service injvm="true" .../>
```
-注意:服务暴露与服务引用都需要声明 `injvm="true"`
-
+注意:dubbo从 `2.2.0`
每个服务默认都会在本地暴露,无需进行任何配置即可进行本地引用,如果不希望服务进行远程暴露,只需要在provider将protocol设置成injvm即可
## 自动暴露、引用本地服务
从 `2.2.0` 开始,每个服务默认都会在本地暴露。在引用服务的时候,默认优先引用本地服务。如果希望引用远程服务可以使用一下配置强制引用远程服务。