This is an automated email from the ASF dual-hosted git repository.

liubao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-servicecomb-docs.git

commit 43df12a4ec39339a9e801c9efe33f6734b678711
Author: liubao <[email protected]>
AuthorDate: Tue May 29 15:51:56 2018 +0800

    pathIndex修改为prefixSegmentCount
---
 .../zh_CN/edge/by-servicecomb-sdk.md                   | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/java-chassis-reference/zh_CN/edge/by-servicecomb-sdk.md 
b/java-chassis-reference/zh_CN/edge/by-servicecomb-sdk.md
index 1e32ce3..96b3bd8 100644
--- a/java-chassis-reference/zh_CN/edge/by-servicecomb-sdk.md
+++ b/java-chassis-reference/zh_CN/edge/by-servicecomb-sdk.md
@@ -76,16 +76,16 @@ servicecomb:
           enabled: true
           prefix: rest
           withVersion: true
-          pathIndex: 1
+          prefixSegmentCount: 1
 ```
 
 常见的这些配置项的示例及含义如下:
-* [prefix=rest;withVersion=true;pathIndex=1]微服务xService提供的URL为: 
/xService/v1/abc,通过Edge访问的地址为/rest/xService/v1/abc,请求只转发到[1.0.0-2.0.0)版本的微服务实例。
-* [prefix=rest;withVersion=true;pathIndex=2]微服务xService提供的URL为: 
/v1/abc,通过Edge访问的地址为/rest/xService/v1/abc,请求只转发到[1.0.0-2.0.0)版本的微服务实例。
-* [prefix=rest;withVersion=true;pathIndex=3]微服务xService提供的URL为: 
/abc,通过Edge访问的地址为/rest/xService/v1/abc,请求只转发到[1.0.0-2.0.0)版本的微服务实例。
-* [prefix=rest;withVersion=false;pathIndex=1]微服务xService提供的URL为: 
/xService/v1/abc,通过Edge访问的地址为/rest/xService/v1/abc,请求可能转发到任意微服务实例。
-* [prefix=rest;withVersion=false;pathIndex=2]微服务xService提供的URL为: 
/v1/abc,通过Edge访问的地址为/rest/xService/v1/abc,,请求可能转发到任意微服务实例。
-* [prefix=rest;withVersion=false;pathIndex=2]微服务xService提供的URL为: 
/abc,通过Edge访问的地址为/rest/xService/abc,,请求可能转发到任意微服务实例。
+* [prefix=rest;withVersion=true;prefixSegmentCount=1]微服务xService提供的URL为: 
/xService/v1/abc,通过Edge访问的地址为/rest/xService/v1/abc,请求只转发到[1.0.0-2.0.0)版本的微服务实例。
+* [prefix=rest;withVersion=true;prefixSegmentCount=2]微服务xService提供的URL为: 
/v1/abc,通过Edge访问的地址为/rest/xService/v1/abc,请求只转发到[1.0.0-2.0.0)版本的微服务实例。
+* [prefix=rest;withVersion=true;prefixSegmentCount=3]微服务xService提供的URL为: 
/abc,通过Edge访问的地址为/rest/xService/v1/abc,请求只转发到[1.0.0-2.0.0)版本的微服务实例。
+* [prefix=rest;withVersion=false;prefixSegmentCount=1]微服务xService提供的URL为: 
/xService/v1/abc,通过Edge访问的地址为/rest/xService/v1/abc,请求可能转发到任意微服务实例。
+* [prefix=rest;withVersion=false;prefixSegmentCount=2]微服务xService提供的URL为: 
/v1/abc,通过Edge访问的地址为/rest/xService/v1/abc,,请求可能转发到任意微服务实例。
+* [prefix=rest;withVersion=false;prefixSegmentCount=2]微服务xService提供的URL为: 
/abc,通过Edge访问的地址为/rest/xService/abc,,请求可能转发到任意微服务实例。
 
 withVersion配置项提供了客户端灰度规则,可以让客户端指定访问的服务端版本。Edge 
Service还包含根据接口兼容性自动路由的功能,请求会转发到包含了该接口的实例。假设某微服务,兼容规划为所有高版本必须兼容低版本,部署了以下版本实例:
 
@@ -110,12 +110,12 @@ servicecomb:
           enabled: true
           mappings:
             businessV1:
-              pathIndex: 1
+              prefixSegmentCount: 1
               path: "/url/business/v1/.*"
               microserviceName: business
               versionRule: 1.0.0-2.0.0
             businessV2:
-              pathIndex: 1
+              prefixSegmentCount: 1
               path: "/url/business/v2/.*"
               microserviceName: business
               versionRule: 2.0.0-3.0.0

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to