《一》web容器啓動基本過程

(1)啓動流程時序圖 (2)web容器的啓動可以從配置的ContextLoaderListener入手,在tomcat啓動的時候會觸發它,結構爲: (3) ContextLoader是ContextLoaderListener的基類,上下文體系的建立就是由ContextLoader來完成的。 具體web容器初始化的代碼流程爲: 上面還有contextDestroyed這個方法,可見web容器的銷燬
相關文章
相關標籤/搜索