(转)spring <context:annotation-config/>和<context:component-scan/> 注册这4个BeanPostProcessor的作用,就是为了你的系统能够识别相应的注解。如果想使用@Required的注解,就必须声明RequiredAnnotationBeanPostProcessor的Bean。 kimlunarove 2014-03-04 08:17:20