HTTP Status 404 – Not Found
作为老菜鸟,在学习srtuts时,调试示例代码时总提示
HTTP Status 404 – Not Found
Type Status Report
Message /8.1/
Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
查看TOMCAT控制台输出以及百度,发现是lib中存在多个没有必要的JAR文件,尝试删除多个JAR文件后还是提示,后来就想到用官方struts2.5.20\apps\struts2-showcase\WEB-INF\lib中文,根据提示再删除struts2-spring-plugin-2.5.20.jar后,程序能够正常运行。
以下是struts.xml,注意DOCTYPE要与使用的struts版本一致。