You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by li...@apache.org on 2019/09/09 03:41:14 UTC
[dubbo] branch master updated: multiple registries,
services only register to default registry. (#4420)
This is an automated email from the ASF dual-hosted git repository.
liujun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo.git
The following commit(s) were added to refs/heads/master by this push:
new 3b74528 multiple registries, services only register to default registry. (#4420)
3b74528 is described below
commit 3b74528fc994ddb4dfc1213feb53c78aa811dc1f
Author: cvictory <sh...@gmail.com>
AuthorDate: Mon Sep 9 11:41:07 2019 +0800
multiple registries, services only register to default registry. (#4420)
fixes #4412
---
.../src/main/java/org/apache/dubbo/config/spring/ServiceBean.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/ServiceBean.java b/dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/ServiceBean.java
index 40eea8c..f9a643a 100644
--- a/dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/ServiceBean.java
+++ b/dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/ServiceBean.java
@@ -209,7 +209,7 @@ public class ServiceBean<T> extends ServiceConfig<T> implements InitializingBean
if (registryConfigs.isEmpty()) {
for (RegistryConfig config : registryConfigMap.values()) {
- if (StringUtils.isEmpty(registryIds)) {
+ if (StringUtils.isEmpty(registryIds) && (config.isDefault() == null || config.isDefault().booleanValue())) {
registryConfigs.add(config);
}
}