I am using Java-based config to set up my Spring application context like this:
@Configuration @Lazy @ComponentScan(basePackageClasses = {MyProject.class, Ot
As of version 4.1 RC2, this bug is fixed, and you can accomplish lazy loading on component scan with:
@ComponentScan(basePackages = ["..."], lazyInit = true)
https://jira.spring.io/browse/SPR-10459