peternameyakj
2024-07-21 25e1d54f2295934446473fe85cf022fa6140b4e0
src/main/webapp/WEB-INF/web.xml
@@ -3,7 +3,7 @@
         xmlns="http://java.sun.com/xml/ns/javaee"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
         version="3.0">
  <welcome-file-list>
    <welcome-file>login.jsp</welcome-file>
  </welcome-file-list>
@@ -11,10 +11,10 @@
  <!--加载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>
    <servlet-name>jsp</servlet-name>
    <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
@@ -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>
@@ -56,7 +56,7 @@
  <listener>
    <listener-class>kernel.web.SpringWebContextListener</listener-class>
  </listener>
  <!--  字符集过滤  -->
  <filter>
    <filter-name>encodingFilter</filter-name>
@@ -74,27 +74,27 @@
    <filter-name>encodingFilter</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>
  <!--配置过滤器-->
  <filter>
      <filter-name>AllRequestFilter</filter-name>
      <filter-class>project.web.admin.filter.AllRequestFilter</filter-class>
  </filter>
  <!--映射过滤器-->
  <filter-mapping>
      <filter-name>AllRequestFilter</filter-name>
      <url-pattern>/*</url-pattern>
  </filter-mapping>
  <!--配置过滤器-->
  <filter>
      <filter-name>urlResourceFilterInvocation</filter-name>
      <filter-class>security.filter.UrlResourceFilterInvocation</filter-class>
  </filter>
  <!--映射过滤器-->
  <filter-mapping>
      <filter-name>urlResourceFilterInvocation</filter-name>
      <url-pattern>/*</url-pattern>
  <filter>
      <filter-name>AllRequestFilter</filter-name>
      <filter-class>project.web.admin.filter.AllRequestFilter</filter-class>
  </filter>
  <!--映射过滤器-->
  <filter-mapping>
      <filter-name>AllRequestFilter</filter-name>
      <url-pattern>/*</url-pattern>
  </filter-mapping>
  <!--配置过滤器-->
  <filter>
      <filter-name>urlResourceFilterInvocation</filter-name>
      <filter-class>security.filter.UrlResourceFilterInvocation</filter-class>
  </filter>
  <!--映射过滤器-->
  <filter-mapping>
      <filter-name>urlResourceFilterInvocation</filter-name>
      <url-pattern>/*</url-pattern>
  </filter-mapping>
</web-app>