SpringBoot集成了Spring、Servlet容器 主流程 读取配置文件:spring.factories 启动监听器:SpringApplicationRunListeners 配置环境变量:ConfigurableEnvironment,判断是否是web环境。实质就是启动Servlet容器 创建上下文:ApplicationContext,核心方法主要’createContext’ ‘refreshContext’ ‘afterRefresh’。本质上是启动Spring IoC。 赞微海报分享
近期评论