Bean后置处理器 – BeanPostProcessor#postProcessAfterInitialization
spring在初始化之后, 还调用了一次 Bean 的后置处理器.
代码片段:
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory#applyBeanPostProcessorsAfterInitialization
@Override public Object applyBeanPostProcessorsAfterInitialization(Object existingBean, String beanName) throws BeansException { Object result = existingBean; for (BeanPostProcessor processor : getBeanPostProcessors()) { Object current = processor.postProcessAfterInitialization(result, beanName); if (current == null) { return result; } result = current; } return result; }
hmoban主题是根据ripro二开的主题,极致后台体验,无插件,集成会员系统
自学咖网 » Bean后置处理器 – BeanPostProcessor#postProcessAfterInitialization
自学咖网 » Bean后置处理器 – BeanPostProcessor#postProcessAfterInitialization