[AppleScript] 纯文本查看 复制代码
<!DOCTYPE web‐app PUBLIC
"‐//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web‐app_2_3.dtd" >
<web‐app>
<display‐name>Archetype Created Web Application</display‐name>
<!‐‐ 解决post乱码 ‐‐>
<filter>
<filter‐name>CharacterEncodingFilter</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>
<init‐param>
<param‐name>forceEncoding</param‐name>
<param‐value>true</param‐value>
</init‐param>
</filter>
<filter‐mapping>
<filter‐name>CharacterEncodingFilter</filter‐name>
<url‐pattern>/*</url‐pattern>
</filter‐mapping>
<servlet>
<servlet‐name>springmvc</servlet‐name>
<servlet‐
class>org.springframework.web.servlet.DispatcherServlet</servlet‐class>
<!‐‐ 指定加载的配置文件 ,通过参数contextConfigLocation加载 ‐‐>
<init‐param>
<param‐name>contextConfigLocation</param‐name>
<param‐value>classpath:springmvc.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>
<welcome‐file‐list><welcome‐file>/pages/index.html</welcome‐file>
</welcome‐file‐list>
</web‐app>