相关资料链接:
https://www.cnblogs.com/xiaoxi/p/5935009.html
http://www.cnblogs.com/softidea/p/5884772.htmlhttp://www.yiibai.com/spring/spring-auto-wiring-beans-with-autowired-annotation.html
Use @ComponentScan to find beans.
All of application components will be automatically registered as Spring Beans:
@Component @Service @Repository @RestController