I am developing an application that runs on Spring Boot configured via XML. For modularity, I didn't want to use @ImportResource as it requires me to go into the source code when in XML configuration I can just configure the XML files to change dependencies.
The problem is that I'm using Spring Boot to run my Spring MVC Controllers (@Controller) and for me to make use of the dependencies I configured in my XML files, I need to declare @ImportResource, which I don't want to use.
Is there any workaround to not use @ImportResource while still using XML config files to inject the dependencies in my Spring MVC Controllers?