Description
Ran into an issue today when trying to convert a working Spring 4 application across to use Spring Boot.
For several reasons, we've gone with XML configuration, and I was looking to use Spring Boot to produce an executable WAR artifact for deployment. We currently use hand rolled POM to do this. We might convert to JavaConfig at a later date, but we're stuck with XML for now.
I have a multi-module maven project, and each project has it's own XML file with a specific context:component-scan entry. In the startup logs, I can see these files being processed without error, however the component-scan doesn't seem to run, or it runs too late. I get bean not defined errors.
If I put a single @componentscan in the Starter class (i.e. in JavaConfig), then the application loads fine.
Is there a workaround for this, or is it a limitation that context:component-scan directives in XML are not processed?