![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring
探索未知-追求极致
这个作者很懒,什么都没留下…
展开
-
关于spring IOC加载过程
1、基本流程。tomcat起来的时候加载ServletContextListener实现类,spring默认ContextLoaderListener实现了该类。读取ContextLoader.properties文件获取XmlWebApplicationContext对象来解析xml文件、实例化对象等。2、prepareBeanFactory方法说明protected void prepareB...原创 2018-04-12 15:50:15 · 3586 阅读 · 0 评论 -
Spring Ioc 第二部分
@Override protected final void refreshBeanFactory() throws BeansException { //判断beanFactory是否存在,如果存在的话,清除所有的bean缓存、当前beanFactory设置为NULL if (hasBeanFactory()) { destroyBeans(); closeBeanFact...原创 2018-04-13 23:07:54 · 115 阅读 · 0 评论 -
关于 BeanPostProcessor 接口
1、BeanPostProcessor接口主要有两个接口 1-1 Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException 1-2 Object postProcessAfterInitialization(Object bean, String beanNa...原创 2018-09-09 17:06:58 · 181 阅读 · 0 评论