I have two applications:
Application
child
: it's a Spring app with XML Schema-based configuration. So We have anapplicationContext.xml
.Application
parent
: Spring Boot app. Uses applicationchild
as a library.
Is possible to load all beans defined in child
XML, and put them into parent
context?
Yes it is possible.
From javadoc:
Here an example from the same javadoc that mix beans loaded from xml in beans defined in configuration class: