你的位置:首页 > Java教程

[Java教程]spring的BeanFactory加载过程


ApplicationContext spring = new ClassPath

配置:

<context:annotation-config/> 

<context:component-scan base-package="com.cc"> <context:exclude-filter type="annotation" expression="org.springframework.stereotype.Controller"/> </context:component-scan>

@Autowired  AutowiredAnnotationBeanPostProcessor  

@Resource CommonAnnotationBeanPostProcessor

@PersistenceContext PersistenceAnnotationBeanPostProcessor 

@Required   RequiredAnnotationBeanPostProcessor