Copy existing BindingProperties values when replacing bound map
Fix #810
This commit is contained in:
committed by
Ilayaperumal Gopinathan
parent
8792423abc
commit
a64860abc8
@@ -127,9 +127,10 @@ public class BindingServiceProperties implements ApplicationContextAware, Enviro
|
||||
if (environment instanceof ConfigurableEnvironment) {
|
||||
// override the bindings store with the environment-initializing version if in
|
||||
// a Spring context
|
||||
Map<String, BindingProperties> delegate = new TreeMap<String, BindingProperties>(String.CASE_INSENSITIVE_ORDER);
|
||||
delegate.putAll(this.bindings);
|
||||
this.bindings = new EnvironmentEntryInitializingTreeMap<>((ConfigurableEnvironment) environment,
|
||||
BindingProperties.class, "spring.cloud.stream.default",
|
||||
new TreeMap<String, BindingProperties>(String.CASE_INSENSITIVE_ORDER));
|
||||
BindingProperties.class, "spring.cloud.stream.default", delegate);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user