spring 的注解掃描時(shí)怎么生效的击罪?
- <context:component-scan/> 里默認(rèn)有<context:annotation-config/>
- 注解處理器
ConfigurationClassPostProcessor
AutowiredAnnotationPostProcessor
RequiredAnnotationBeanPostProcessor
CommonAnnotationBeanPostProcessor - 初始化調(diào)用順序:@PostConstruct - > afterProperties -> init-method