peternameyakj
2024-07-21 25e1d54f2295934446473fe85cf022fa6140b4e0
src/main/webapp/WEB-INF/web.xml
@@ -11,8 +11,8 @@
  <!--加载Spring的配置文件到上下文中去-->
     <context-param>
      <param-name>contextConfigLocation</param-name>
      <!-- <param-value>classpath:applicationContext.xml</param-value> -->
      <param-value>classpath*:spring/*.xml</param-value>
       <param-value>classpath*:spring/applicationContext.xml</param-value>
<!--      <param-value>classpath*:spring/*.xml</param-value>-->
   </context-param>
   
  <servlet>
@@ -40,7 +40,7 @@
    <init-param>
      <param-name>contextConfigLocation</param-name>
      <!-- 此处指向的的是SpringMVC的配置文件 -->
      <param-value>classpath:spring/spring-mvc.xml</param-value>
      <param-value>classpath:spring-mvc.xml</param-value>
    </init-param>
    <!--配置容器在启动的时候就加载这个servlet并实例化-->
    <load-on-startup>1</load-on-startup>