zoukankan      html  css  js  c++  java
  • web.xml

    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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_2_5.xsd" id="WebApp_ID" version="2.5">
      <display-name>bookstore01</display-name>
    
        <!--编码过滤器-->
        <filter>
            <filter-name>encoding</filter-name>
            <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
            <init-param>
                <param-name>encoding</param-name>
                <param-value>UTF-8</param-value>
            </init-param>
        </filter>
        <filter-mapping>
            <filter-name>encoding</filter-name>
            <url-pattern>/*</url-pattern>
        </filter-mapping>
    
        <!--中央处理器-->
        <servlet>
            <servlet-name>springmvc</servlet-name>
            <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
            <init-param>
                <param-name>contextConfigLocation</param-name>
                <param-value>classpath:spring-*.xml</param-value>
            </init-param>
            <load-on-startup>1</load-on-startup>
        </servlet>
        <servlet-mapping>
            <servlet-name>springmvc</servlet-name>
            <url-pattern>*.do</url-pattern>
        </servlet-mapping>
    
        <servlet>
            <servlet-name>imageCode</servlet-name>
            <servlet-class>utils.CheckImageServlet</servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>imageCode</servlet-name>
            <url-pattern>/imageCode</url-pattern>
        </servlet-mapping>
    
        <filter>
            <filter-name>adminLogin</filter-name>
            <filter-class>admin.AdminLoginFilter</filter-class>
        </filter>
        <filter-mapping>
            <filter-name>adminLogin</filter-name>
            <url-pattern>/admin/login/*</url-pattern>
            <url-pattern>/admin/notices/*</url-pattern>
            <url-pattern>/admin/orders/*</url-pattern>
            <url-pattern>/admin/products/*</url-pattern>
        </filter-mapping>
        <welcome-file-list>
            <welcome-file>index.jsp</welcome-file>
        </welcome-file-list>
    </web-app>
  • 相关阅读:
    Power of Cryptography
    Radar Installation
    Emag eht htiw Em Pleh
    Help Me with the Game
    89. Gray Code
    87. Scramble String
    86. Partition List
    85. Maximal Rectangle
    84. Largest Rectangle in Histogram
    82. Remove Duplicates from Sorted List II
  • 原文地址:https://www.cnblogs.com/mm163/p/11009914.html
Copyright © 2011-2022 走看看