我们知道spring在web.xml中可以有三种方式来配置其xml路径:org.springframework.web.servlet.DispatcherServletorg.springframework.web.context.ContextLoaderListenerorg.springframework.web.context.ContextLoaderServlet当 使用第一种方式配置时,spring载入的WebApplicationContext是隶属于此Servlet的(所以s…