不行 加进去报错 下面是我原来的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_3_0.xsd"
id="WebApp_ID" version="3.0">
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<servlet>
<servlet-name>Smart2</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>Smart2</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
<filter>
<filter-name>CharacterFilter</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>CharacterFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<!-- <error-page>-->
<!-- <error-code>400</error-code>-->
<!-- <location>/jsp/error/checkdatabasepage.jsp</location>-->
<!-- </error-page>-->
<!-- <error-page>-->
<!-- <error-code>401</error-code>-->
<!-- <location>/jsp/error/errorpage.jsp</location>-->
<!-- </error-page>-->
<!-- <error-page>-->
<!-- <error-code>403</error-code>-->
<!-- <location>/jsp/error/errorpage.jsp</location>-->
<!-- </error-page>-->
<!-- <error-page>-->
<!-- <error-code>404</error-code>-->
<!-- <location>/jsp/error/errorpage.jsp</location>-->
<!-- </error-page>-->
<!-- <error-page>-->
<!-- <error-code>500</error-code>-->
<!-- <location>/jsp/error/errorpage.jsp</location>-->
<!-- </error-page>-->
</web-app>
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。