¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" |
| | | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| | | xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee |
| | | http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd" |
| | | version="4.0" |
| | | metadata-complete="true"> |
| | | <filter> |
| | | <filter-name>CharacterEncoding</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>CharacterEncoding</filter-name> |
| | | <url-pattern>/*</url-pattern> |
| | | </filter-mapping> |
| | | |
| | | <!--å¨web项ç®ä¸æ³¨åSpringMVCçæ§å¶å¨ï¼æææç请æ±é½äº¤ç»springçæ§å¶å¨å¤ç--> |
| | | <!--Single Page Application--> |
| | | <servlet> |
| | | <servlet-name>springDispatcherServlet</servlet-name> |
| | | <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> |
| | | <multipart-config/> |
| | | <init-param> |
| | | <param-name>contextConfigLocation</param-name> |
| | | <param-value>classpath:spring-servlet.xml</param-value> |
| | | </init-param> |
| | | <load-on-startup>1</load-on-startup> |
| | | </servlet> |
| | | |
| | | <servlet-mapping> |
| | | <servlet-name>springDispatcherServlet</servlet-name> |
| | | <url-pattern>/</url-pattern> |
| | | </servlet-mapping> |
| | | <!--é对 post ä¹±ç --> |
| | | |
| | | <welcome-file-list> |
| | | <welcome-file>/page/Login.jsp</welcome-file> |
| | | </welcome-file-list> |
| | | <error-page> |
| | | <error-code>404</error-code> |
| | | <location>/page/error.jsp</location> |
| | | </error-page> |
| | | <error-page> |
| | | <error-code>500</error-code> |
| | | <location>/page/error.jsp</location> |
| | | </error-page> |
| | | <error-page> |
| | | <error-code>405</error-code> |
| | | <location>/page/error.jsp</location> |
| | | </error-page> |
| | | </web-app> |
| | | |