2020
10-10
10-10
Spring启动流程refresh()源码深入解析
一、Spring容器的refresh()spring version:4.3.12 ,尚硅谷Spring注解驱动开发—源码部分//refresh():543,AbstractApplicationContext(org.springframework.context.support)publicvoidrefresh()throwsBeansException,IllegalStateException{synchronized(this.startupShutdownMonitor){//1刷新前的预处理prepareRefresh();//2获取BeanFactory;刚创建的默认DefaultListableBeanFactoryConfigur...
继续阅读 >