dubbo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chickenlj (GitHub) <git...@apache.org>
Subject [GitHub] [incubator-dubbo] chickenlj opened issue #3047: Annotation can not work together with Config Center in 2.7.0.
Date Sat, 22 Dec 2018 06:48:28 GMT
For example, there are two registries configured in remote Config Center:
```properties
dubbo.registries.registry1.address=zookeeper://127.0.0.1:2181
dubbo.registries.registry2.address=zookeeper://127.0.0.1:2182
```

If we want to use `registry1` as the registry for one service `DemoService`,  we can easily
figure out  how to achieve that without Config Center, explictly specify the registry that
should be used in @Service, like this:
```java
@Service(registry="registry1")
public class DemoServiceImpl implements DemoService{
}
```
However, it just failed to work, simply because there's no Spring Bean named `registry1`.

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


Mime
View raw message