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