原创 Spring-Configuration-運用註解配置bean

一般對spring比較熟悉得使用xml來注入bean,spring3之後註解則越來越豐富 特別最近使用spring-boot,集成了spring和tomcat等容器,減少了application.xml和web.xml的配置