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 2021/08/11 04:47:59 UTC

[dubbo-website] branch master updated: Update routing-rule.md (#890)

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 b4ee5d4  Update routing-rule.md (#890)
b4ee5d4 is described below

commit b4ee5d4f7398312bab7f5bdcd48c73041cca6d40
Author: Kealdish <12...@users.noreply.github.com>
AuthorDate: Wed Aug 11 12:47:51 2021 +0800

    Update routing-rule.md (#890)
    
    Ref issue [#8427](https://github.com/apache/dubbo/issues/8427)
---
 content/zh/docsv2.7/user/examples/routing-rule.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/content/zh/docsv2.7/user/examples/routing-rule.md b/content/zh/docsv2.7/user/examples/routing-rule.md
index 9313109..ac14d99 100644
--- a/content/zh/docsv2.7/user/examples/routing-rule.md
+++ b/content/zh/docsv2.7/user/examples/routing-rule.md
@@ -245,9 +245,9 @@ RpcContext.getContext().setAttachment(Constants.REQUEST_TAG_KEY,"tag1");
 
 #### 降级约定
 
-1. `request.tag=tag1` 时优先选择 标记了`tag=tag1` 的 provider。若集群中不存在与请求标记对应的服务,默认将降级请求 tag为空的provider;如果要改变这种默认行为,即找不到匹配tag1的provider返回异常,需设置`request.tag.force=true`。
+1. `dubbo.tag=tag1` 时优先选择 标记了`tag=tag1` 的 provider。若集群中不存在与请求标记对应的服务,默认将降级请求 tag为空的provider;如果要改变这种默认行为,即找不到匹配tag1的provider返回异常,需设置`dubbo.force.tag=true`。
 
-2. `request.tag`未设置时,只会匹配tag为空的provider。即使集群中存在可用的服务,若 tag 不匹配也就无法调用,这与约定1不同,携带标签的请求可以降级访问到无标签的服务,但不携带标签/携带其他种类标签的请求永远无法访问到其他标签的服务。
+2. `dubbo.tag`未设置时,只会匹配tag为空的provider。即使集群中存在可用的服务,若 tag 不匹配也就无法调用,这与约定1不同,携带标签的请求可以降级访问到无标签的服务,但不携带标签/携带其他种类标签的请求永远无法访问到其他标签的服务。
 
 {{% alert title="提示" color="primary" %}}
 `2.6.x` 版本以及更早的版本请使用[老版本路由规则](../routing-rule-deprecated)