You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "chickenlj (GitHub)" <gi...@apache.org> on 2019/01/23 10:08:01 UTC

[GitHub] [incubator-dubbo] chickenlj commented on issue #3319: Tag 路由本地yml配置不生效,需要写到 config-center 才生效。

在本地,你可以在配置阶段通过XML或者API方式来指定某个服务的tag
```xml
<dubbo:service tag="{the-tag-you-want}"/>
```

```java
ServiceConfig serviceconfig = new ServiceConfig();
serviceConfig.setTag("tag1");
serviceConfig.export();
```

[ Full content available at: https://github.com/apache/incubator-dubbo/issues/3319 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org