================提高效率的宝扫描 方式:指定具体包名。
=====带来的问题:新添加需要自动注入属性时,常常忘记 添加包扫描。
导致 报错:【Could not autowire field:】
<!-- 组件扫描 @Server @Controller @Repository ===applicationContext.xml中只需要一个包扫描 -->
<context:component-scan base-package="cn.itcast.bos.service,cn.itcast.bos.action,cn.itcast.bos.mq"/>
================