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 2018/12/25 09:26:29 UTC

[GitHub] [incubator-dubbo] chickenlj commented on issue #3056: org.apache.dubbo.config.AbstractInterfaceConfig#setRegistry(java.lang.String) does't work

Here is the right way to use:

```java
    //registry
    //zookeeper://127.0.0.1:2181
    referenceConfig.setRegistry("registryId"); // registryId is a reference of a RegistryConfig you defined locally or in Config Center.
    ......
```
or
```java
    //registry
    //zookeeper://127.0.0.1:2181
   RegistryConfig registryConfig = new RegistryConfig();
   registryConfig.setAddress("zookeeper://127.0.0.1:2181");
    referenceConfig.setRegistry(registryConfig);
    ......
```


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