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/07/19 12:32:29 UTC

[dubbo-website] branch master updated: [fix] 优化服务分版本 (#1246)

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 e69d6543f0 [fix] 优化服务分版本 (#1246)
e69d6543f0 is described below

commit e69d6543f09ffea284c06a87266dd6807e8e3f16
Author: JIAN ZHONG <11...@qq.com>
AuthorDate: Tue Jul 19 20:32:24 2022 +0800

    [fix] 优化服务分版本 (#1246)
---
 .../advanced-features-and-usage/service/multi-versions.md      | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/content/zh/docs3-building/java-sdk/advanced-features-and-usage/service/multi-versions.md b/content/zh/docs3-building/java-sdk/advanced-features-and-usage/service/multi-versions.md
index 32c864aa08..aef3c7e813 100644
--- a/content/zh/docs3-building/java-sdk/advanced-features-and-usage/service/multi-versions.md
+++ b/content/zh/docs3-building/java-sdk/advanced-features-and-usage/service/multi-versions.md
@@ -7,13 +7,13 @@ description: "在 Dubbo 中为同一个服务配置多个版本"
 ---
 
 ## 特性说明
-按照以下的步骤进行版本迁移:
+**按照以下的步骤进行版本迁移:**
 
 1. 在低压力时间段,先升级一半提供者为新版本
 2. 再将所有消费者升级为新版本
 3. 然后将剩下的一半提供者升级为新版本
 
-配置
+#### 配置
 - 新旧版本服务提供者
 - 新旧版本服务消费者
 
@@ -25,22 +25,20 @@ 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" />