Web项目配置Spring框架后,web.xml会有一个配置:
于是我找源码对它查看一番,了解暂时至此,还涉及到很多类和接口及其当中的方法没有了解。
spring的web.xml–ContextLoaderListener加载过程:
contextloaderlistener(C) : 上下文加载监听器
ServletContextListener(I):
参考文章:
Spring源码分析 从web.xml 中ContextLoaderListener看Spring 容器与web容器联系
ContextLoaderListener加载过程(最详细版)
SpringMVC容器初始化篇----ContextLoaderListener
ContextLoaderListener介绍