You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2022/08/07 02:37:58 UTC

[dubbo-website] branch master updated: [fix] optimization (#1341)

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 25a94bf3bd [fix] optimization (#1341)
25a94bf3bd is described below

commit 25a94bf3bd807edb2c10356202d6e50d089afb44
Author: JM <11...@qq.com>
AuthorDate: Sun Aug 7 10:37:54 2022 +0800

    [fix] optimization (#1341)
---
 .../service/multi-versions.md                      | 24 +++++++++++-----------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/content/zh/docs3-v2/java-sdk/advanced-features-and-usage/service/multi-versions.md b/content/zh/docs3-v2/java-sdk/advanced-features-and-usage/service/multi-versions.md
index aef3c7e813..6ffb66e073 100644
--- a/content/zh/docs3-v2/java-sdk/advanced-features-and-usage/service/multi-versions.md
+++ b/content/zh/docs3-v2/java-sdk/advanced-features-and-usage/service/multi-versions.md
@@ -7,15 +7,15 @@ description: "在 Dubbo 中为同一个服务配置多个版本"
 ---
 
 ## 特性说明
-**按照以下的步骤进行版本迁移:**
+**按照以下的步骤进行版本迁移**
 
 1. 在低压力时间段,先升级一半提供者为新版本
 2. 再将所有消费者升级为新版本
 3. 然后将剩下的一半提供者升级为新版本
 
 #### 配置
-- 新旧版本服务提供者
-- 新旧版本服务消费者
+- 新老版本服务提供者
+- 新老版本服务消费者
 
 ## 使用场景
 当一个接口实现,出现不兼容升级时,可以用版本号过渡,版本号不同的服务相互间不引用。
@@ -25,26 +25,26 @@ description: "在 Dubbo 中为同一个服务配置多个版本"
 [https://github.com/apache/dubbo-samples/tree/master/dubbo-samples-version](https://github.com/apache/dubbo-samples/tree/master/dubbo-samples-version)
 
 ## 使用方式
-#### 服务提供者
-老版本服务提供者配置:
+### 服务提供者
+老版本服务提供者配置
 ```xml
 <dubbo:service interface="com.foo.BarService" version="1.0.0" />
 ```
-新版本服务提供者配置:
+新版本服务提供者配置
 ```xml
 <dubbo:service interface="com.foo.BarService" version="2.0.0" />
 ```
-#### 服务消费者
-老版本服务消费者配置:
+### 服务消费者
+老版本服务消费者配置
 ```xml
 <dubbo:reference id="barService" interface="com.foo.BarService" version="1.0.0" />
 ```
-新版本服务消费者配置:
+新版本服务消费者配置
 ```xml
 <dubbo:reference id="barService" interface="com.foo.BarService" version="2.0.0" />
 ```
-
-如果不需要区分版本,可以按照以下的方式配置:
+### 不区分版本
+如果不需要区分版本,可以按照以下的方式配置
 ```xml
 <dubbo:reference id="barService" interface="com.foo.BarService" version="*" />
-```
\ No newline at end of file
+```