(自己在浏览器中,直接进入项目的根目录,即 http://localhost:8080/ssh/ 时便报错,web.xml文件已经配置了 欢迎页面
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
并且 filter-mapping设置为 所有的url
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
其实问题是,自己无意中,将 index.jsp 文件 拖到了别的路径(应该在WebRoot 的根目录下)
网上有的人,将struts.xml 文件名 拼写错,也报该错误。