Skip to content
Permalink
Browse files
dubbo-sample-configcenter-api module ExternalConfiguration (#326)
  • Loading branch information
xiaoheng1 committed Jun 2, 2021
1 parent d859336 commit 2e5b32bfd7e40b0c41f7b3ed62a4ab582135b645
Showing 1 changed file with 1 addition and 1 deletion.
@@ -71,7 +71,7 @@ public static void main(String[] args) throws Exception {
*/
public static Map<String, String> getExternalConfiguration() {
Map<String, String> dubboConfigurations = new HashMap<>();
dubboConfigurations.put("dubbo.registry.address", "zookeeper://" + zookeeperHost1 + ":" + zookeeperPort1);
dubboConfigurations.put("dubbo.registry.address", "zookeeper://" + zookeeperHost2 + ":" + zookeeperPort2);
// you will need to add the config center address if you want to use the service governance features in 2.7,
// e.g., overrides and routers, but notice it will not be used for gathering startup configurations.
dubboConfigurations.put("dubbo.config-center.address", "zookeeper://" + zookeeperHost1 + ":" + zookeeperPort1);

0 comments on commit 2e5b32b

Please sign in to comment.