GH-2728 Change the order of the refresh for multicontext

This commit is contained in:
Oleg Zhurakousky
2024-05-27 09:05:50 +02:00
parent 13f94d266f
commit 7f0021b394

View File

@@ -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;