To support autowiring by annotations
,是否需要在class
文件中提及AutowiredAnnotationBeanPostProcessor
spring.xml
,如下所示
<bean class="org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor"/>
答案 0 :(得分:0)
默认的AutowiredAnnotationBeanPostProcessor将由&#34; context注册:annotation-config&#34;和&#34;上下文:组件扫描&#34; XML标签。