web.xml配备加载spring

web.xml配置加载springweb.xml配置加载spring第一种加载applicationContext.xml的方法: servletservlet

web.xml配置加载spring
web.xml配置加载spring

第一种加载applicationContext.xml的方法:

 <servlet>      <servlet-name>context</servlet-name>      <servlet-class>org.springframework.web.context.ContextLoaderServlet</servlet-class>      <load-on-startup>1</load-on-startup>  </servlet>