Spring boot config @componentscan for nonsubpackage.
Jun 25, 2016, 12:00 AM
-
@ComponentScan default only scan current package. if not in current package, must add.
-
Add @Component to allow injection.
-
@ImportResource should happen before @ComponentScan if refer the object from it.