GH-2728 Change the order of the refresh for multicontext
This commit is contained in:
@@ -494,10 +494,10 @@ public class DefaultBinderFactory implements BinderFactory, DisposableBean, Appl
|
||||
}
|
||||
|
||||
if (refresh) {
|
||||
binderProducingContext.refresh();
|
||||
if (!useApplicationContextAsParent || "integration".equals(binderType.getDefaultName())) {
|
||||
this.propagateSharedBeans(binderProducingContext, (GenericApplicationContext) this.context);
|
||||
}
|
||||
binderProducingContext.refresh();
|
||||
}
|
||||
|
||||
return binderProducingContext;
|
||||
|
||||
Reference in New Issue
Block a user