@Resource(name="xxx")相当于属性的set方法,和xml中的属性配置
<context:annotion-config>可以使用属性注入的注解
spring的xml和注解整合
原文:https://www.cnblogs.com/yangHS/p/11404051.html