学无先后,达者为师

网站首页 编程语言 正文

SpringMVC的流程

作者:Franklin_xc 更新时间: 2022-07-26 编程语言
  1. Tomcat启动, 加载web.xml-> 先获取listener
  2. ContextLoaderListener -> 初始化父容器-> 存入到ServletContext,key=WebApplicationContext.class.getName() + “.Root”
  3. 创建DispatcherServlet
  4. 调用init()->创建Spring容器->initServletBean()->initWebApplicationContext->从servletCnntext中取出父容器->createWebApplicationContext(rootContext)->实例化一个ApplicationContext对象->刷新容器

原文链接:https://blog.csdn.net/weixin_42293662/article/details/125941721

栏目分类
最近更新