1 <?xml version="1.0" encoding="UTF-8"?>
2 <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_3_0.xsd" id="WebApp_ID" version="3.0">
3 <display-name>BookControlSystem
</display-name>
4
5
6 <listener>
7 <listener-class>org.springframework.web.context.ContextLoaderListener
</listener-class>
8 </listener>
9
10 <context-param>
11 <param-name>contextConfigLocation
</param-name>
12 <param-value>/WEB-INF/classes/applicationContext.xml
</param-value>
13 </context-param>
14
15 <servlet>
16 <servlet-name>bookControlSystem
</servlet-name>
17 <servlet-class>org.springframework.web.servlet.DispatcherServlet
</servlet-class>
18 <init-param>
19 <param-name>contextConfigLocation
</param-name>
20 <param-value>/WEB-INF/classes/bookControlSystem-servlet.xml
</param-value>
21 </init-param>
22 <load-on-startup>1
</load-on-startup>
23 </servlet>
24 <servlet-mapping>
25 <servlet-name>bookControlSystem
</servlet-name>
26 <url-pattern>*.do
</url-pattern>
27 </servlet-mapping>
28
29 <filter>
30 <filter-name>Set Character Encoding
</filter-name>
31 <filter-class>org.springframework.web.filter.CharacterEncodingFilter
</filter-class>
32 <init-param>
33 <param-name>encoding
</param-name>
34 <param-value>UTF-8
</param-value>
35 </init-param>
36 </filter>
37 <filter-mapping>
38 <filter-name>Set Character Encoding
</filter-name>
39 <url-pattern>/*
</url-pattern>
40 </filter-mapping>
41
42
50
51 </web-app>
转载于:https://www.cnblogs.com/xjpu/p/6597668.html