摘要: Spring启动过程经常在面试中会被问到,下面来梳理下Spring启动到底在干什么。 首先要知道启动的入口: 初始化上下文(WebApplicationContext),和配置文件相关常用到的上下文实现有: 1、ClassPathXmlApplicationContext 2、FileSystemX 阅读全文
posted @ 2018-04-12 16:54 lion_eagle 阅读(1411) 评论(0) 推荐(0) 编辑
摘要: 先上一个图: 从图上我们可以了解到跟一个请求相关的组件大概有 connector、coyote、engine、host、context、servlet 那么会有几个问题: 1、connector是如何监听和接收请求的 2、connector如何传递请求到engine 3、engine又是如何经过一步 阅读全文
posted @ 2018-04-12 16:52 lion_eagle 阅读(882) 评论(0) 推荐(0) 编辑