spring 时代,开启注解需要在xml中配置component-scan,然后触发标签解析,解析时根据标签的annotation-config属性将configrationPostProcesser注册进spring,由其完成注解的解析工作
而springboot,在自己的prepareContext 方法中将configrationPostProcesser注册进去
spring 时代,开启注解需要在xml中配置component-scan,然后触发标签解析,解析时根据标签的annotation-config属性将configrationPostProcesser注册进spring,由其完成注解的解析工作
而springboot,在自己的prepareContext 方法中将configrationPostProcesser注册进去