- Tomcat启动, 加载web.xml-> 先获取listener
- ContextLoaderListener -> 初始化父容器-> 存入到ServletContext,key=WebApplicationContext.class.getName() + “.Root”
- 创建DispatcherServlet
- 调用init()->创建Spring容器->initServletBean()->initWebApplicationContext->从servletCnntext中取出父容器->createWebApplicationContext(rootContext)->实例化一个ApplicationContext对象->刷新容器
SpringMVC的流程
最新推荐文章于 2024-06-25 21:54:35 发布