在bean.xml文件中添加
<bean class="org.springframework.context.annotation.CommonAnnotationBeanPostProcessor" />
引用只需要@Resource name= bean.xml中的ID即可 引用不需要get set方法
本文详细介绍了如何在bean.xml文件中添加配置,使用CommonAnnotationBeanPostProcessor实现基于注解的Spring Bean注入,无需传统get和set方法。
在bean.xml文件中添加
<bean class="org.springframework.context.annotation.CommonAnnotationBeanPostProcessor" />
引用只需要@Resource name= bean.xml中的ID即可 引用不需要get set方法

被折叠的 条评论
为什么被折叠?