From 213c04ffd0c692095e9399a6ef6416a00a40e5cc Mon Sep 17 00:00:00 2001 From: huaifeng Date: Mon, 15 Apr 2019 15:41:16 +0800 Subject: [PATCH 1/2] change the local-call info --- 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 4fa3596995c5..1b8dbb6f44a8 100644 --- a/docs/zh-cn/user/demos/local-call.md +++ b/docs/zh-cn/user/demos/local-call.md @@ -36,8 +36,7 @@ ``` -注意:服务暴露与服务引用都需要声明 `injvm="true"` - +注意:dubbo从 `2.2.0` 每个服务默认都会在本地暴露,无需进行任何配置即可进行本地引用,如果不希望服务进行远程暴露,只需要在provider将protocol设置成injvm即可 ## 自动暴露、引用本地服务 从 `2.2.0` 开始,每个服务默认都会在本地暴露。在引用服务的时候,默认优先引用本地服务。如果希望引用远程服务可以使用一下配置强制引用远程服务。 From deed0b6526d4bb517ac37d970b49101a17195f74 Mon Sep 17 00:00:00 2001 From: huaifeng Date: Tue, 16 Apr 2019 15:28:42 +0800 Subject: [PATCH 2/2] change the local-call info for english --- docs/en-us/user/demos/local-call.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en-us/user/demos/local-call.md b/docs/en-us/user/demos/local-call.md index f751802e35cf..0c2382f9d84d 100644 --- a/docs/en-us/user/demos/local-call.md +++ b/docs/en-us/user/demos/local-call.md @@ -36,7 +36,7 @@ or ``` -Note: Both service provider and service references need to declare `injvm="true"` +Note: Dubbo is exposed locally from `2.2.0` by default. It can be referenced locally without any configuration. If you don't want the service to be exposed remotely, you only need to set the protocol to injvm in the provider. ## Automatically exposed, local service references