GH-2728 Reverse order of propagation of beans between parent and child context

Resolves #2728
This commit is contained in:
Oleg Zhurakousky
2023-12-04 18:01:13 +01:00
parent 4c66ed77c9
commit 1e1bcec914

View File

@@ -483,7 +483,7 @@ public class DefaultBinderFactory implements BinderFactory, DisposableBean, Appl
if (refresh) {
binderProducingContext.refresh();
if (!useApplicationContextAsParent || "integration".equals(binderType.getDefaultName())) {
this.propagateSharedBeans((GenericApplicationContext) this.context, binderProducingContext);
this.propagateSharedBeans(binderProducingContext, (GenericApplicationContext) this.context);
}
}