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 27454aa39ec [add] scene (#1386)
27454aa39ec is described below
commit 27454aa39ec6efb04aed490b6a18646349c97e6a
Author: JM <[email protected]>
AuthorDate: Mon Aug 15 18:51:33 2022 +0800
[add] scene (#1386)
---
.../advanced-features-and-usage/service/preflight-check.md | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git
a/content/zh/docs3-v2/java-sdk/advanced-features-and-usage/service/preflight-check.md
b/content/zh/docs3-v2/java-sdk/advanced-features-and-usage/service/preflight-check.md
index 50cd7024a3b..2325d7f0ed2 100644
---
a/content/zh/docs3-v2/java-sdk/advanced-features-and-usage/service/preflight-check.md
+++
b/content/zh/docs3-v2/java-sdk/advanced-features-and-usage/service/preflight-check.md
@@ -12,7 +12,14 @@ Dubbo 缺省会在启动时检查依赖的服务是否可用,不可用时会
另外,如果你的 Spring 容器是懒加载的,或者通过 API 编程延迟引用服务,请关闭 check,否则服务临时不可用时,会抛出异常,拿到 null
引用,如果 `check="false"`,总是会返回引用,当服务恢复时,能自动连上。
-## 使用场景
+## 使用场景
+
+- 单向依赖:有依赖关系(建议默认设置)和无依赖关系(可以设置 check=false)
+- 相互依赖:即循环依赖,(不建议设置 check=false)
+- 延迟加载处理
+
+> check只用来启动时检查,运行时没有相应的依赖仍然会报错。
+
## 使用方式
### 通过 spring 配置文件