You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by il...@apache.org on 2018/12/13 08:49:31 UTC
[incubator-dubbo] branch master updated: fix issue-2948:spring boot
external config invalid (#2950)
This is an automated email from the ASF dual-hosted git repository.
iluo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo.git
The following commit(s) were added to refs/heads/master by this push:
new b8c3e84 fix issue-2948:spring boot external config invalid (#2950)
b8c3e84 is described below
commit b8c3e8445524a78fda3e7823893a4ef8415d7fa3
Author: Mei Ping <me...@gmail.com>
AuthorDate: Thu Dec 13 16:49:06 2018 +0800
fix issue-2948:spring boot external config invalid (#2950)
---
.../java/org/apache/dubbo/config/spring/util/PropertySourcesUtils.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/util/PropertySourcesUtils.java b/dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/util/PropertySourcesUtils.java
index b613787..28d43fc 100644
--- a/dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/util/PropertySourcesUtils.java
+++ b/dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/util/PropertySourcesUtils.java
@@ -55,7 +55,7 @@ public abstract class PropertySourcesUtils {
if (name.startsWith(normalizedPrefix)) {
String subName = name.substring(normalizedPrefix.length());
String value = propertyResolver.getProperty(name);
- subProperties.put(subName, value);
+ subProperties.putIfAbsent(subName, value);
}
}
}