This is an automated email from the ASF dual-hosted git repository.
albumenj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-website.git
The following commit(s) were added to refs/heads/master by this push:
new aabbc991d7 Update local-call.md (#2454)
aabbc991d7 is described below
commit aabbc991d755c1c7939827b5b8a2eefac1ebf328
Author: MieAh <[email protected]>
AuthorDate: Thu Mar 23 20:05:19 2023 +0800
Update local-call.md (#2454)
related #11531 apache/dubbo
---
.../service/local-call.md | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)
diff --git
a/content/zh-cn/overview/mannual/java-sdk/advanced-features-and-usage/service/local-call.md
b/content/zh-cn/overview/mannual/java-sdk/advanced-features-and-usage/service/local-call.md
index 503a1db9a4..d6c8171b2e 100644
---
a/content/zh-cn/overview/mannual/java-sdk/advanced-features-and-usage/service/local-call.md
+++
b/content/zh-cn/overview/mannual/java-sdk/advanced-features-and-usage/service/local-call.md
@@ -64,4 +64,22 @@ weight: 22
```xml
<dubbo:reference ... scope="remote" />
-```
\ No newline at end of file
+```
+
+
+### 动态配置调用行为
+
+从`3.2`开始,Dubbo提供api可以让用户在使用中动态地去配置单一次调用时为本地调用或者远程调用,当没配置的时候将默认优先引用本地服务
+
+**配置单一次调用为远程调用**
+
+```java
+RpcContext.getServiceContext().setLocalInvoke(false);
+```
+
+**配置单一次调用为本地调用**
+
+```java
+RpcContext.getServiceContext().setLocalInvoker(true);
+```
+