spring boot config @componentscan for nonsubpackage.

Spring boot config @componentscan for nonsubpackage.
  1. @ComponentScan default only scan current package. if not in current package, must add.

  2. Add @Component to allow injection.

  3. @ImportResource should happen before @ComponentScan if refer the object from it.