在bean.xml文件中添加
<bean class="org.springframework.context.annotation.CommonAnnotationBeanPostProcessor" />
引用只需要@Resource name= bean.xml中的ID即可 引用不需要get set方法
版权声明:本文为qq7342272原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。
在bean.xml文件中添加
<bean class="org.springframework.context.annotation.CommonAnnotationBeanPostProcessor" />
引用只需要@Resource name= bean.xml中的ID即可 引用不需要get set方法