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 8f5e7d75f2
commit 35964fc935

View File

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