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 554872e Gramma Fix (#799)
554872e is described below
commit 554872eaa25492f317e01877c7d60edf6fc3d6f7
Author: Gao <[email protected]>
AuthorDate: Thu May 13 12:15:51 2021 +0800
Gramma Fix (#799)
---
content/zh/docs/v2.7/dev/principals/configuration.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/content/zh/docs/v2.7/dev/principals/configuration.md
b/content/zh/docs/v2.7/dev/principals/configuration.md
index e6dcdae..54bab58 100644
--- a/content/zh/docs/v2.7/dev/principals/configuration.md
+++ b/content/zh/docs/v2.7/dev/principals/configuration.md
@@ -20,7 +20,7 @@ Dubbo 现在的设计是完全无侵入,也就是使用者只依赖于配置
通常环境配置,用 properties 配置会比较方便,因为都是一些离散的简单值,用 key-value 配置可以减少配置的学习成本。
-而描述配置,通常信息比较多,甚至有层次关系,用 xml 配置会比较方便,因为树结构的配置表现力更强。如果非常复杂,也可以考自定义 DSL
做为配置。有时候这类配置也可以用 Annotation 代替, 因为这些配置和业务逻辑相关,放在代码里也是合理的。
+而描述配置,通常信息比较多,甚至有层次关系,用 xml 配置会比较方便,因为树结构的配置表现力更强。如果非常复杂,也可以考虑自定义 DSL
做为配置。有时候这类配置也可以用 Annotation 代替, 因为这些配置和业务逻辑相关,放在代码里也是合理的。
另外扩展配置,可能不尽相同。如果只是策略接口实现类替换,可以考虑 properties 等结构。如果有复杂的生命周期管理,可能需要 XML
等配置。有时候扩展会通过注册接口的方式提供。