The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.报该错误的一种原因。

今天发现某个action返回404。

HTTP Status 404 – Not Found

Type Status Report

Message /xxx.action

Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
Apache Tomcat/8.5.16

网上搜索了半天,尝试了各种办法都不行。最后发现是路径错了,路径前面缺少了contextPath!

 

posted @ 2017-12-21 16:21  成宇佳  阅读(33277)  评论(1编辑  收藏  举报