
Spring boot config @componentscan for nonsubpackage.
2016, Jun 25
-
@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.