一个工程在tomcat下能正常运行,但在web.xml加了struts2的配置文件(拦截器)后,运行工程,则提示找不到该工程,404.是怎么回事?谢谢
配置代码如下
<?xml version="1.0" encoding="GBK"?><web-app xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">     <!-- 定义Struts2的核心Filter -->
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
</filter>
<!-- 让Struts2的核心Filter拦截所有请求 -->
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>    <display-name>book</display-name>
  
    <welcome-file-list>               
    <welcome-file>index1.jsp</welcome-file>
    </welcome-file-list>
</web-app>