当你拷贝别人Maven创建的工程到自己的eclipse中,jdk和tomcat配置好,但是修改了Dynamic web Module 的Version 然后运行服务器发现报404错误。


Tomcat 404 error: The origin server did not find a current representation for the target

   Tomcat 404 error: The origin server did not find a current representation for the target

    之后查看发现当你修改了 Dynamic web Module 后,项目的发布路径(Web Deployment Assembly)也会随之改变。由于是Maven部署的项目因此要修改项目的发布路径。Tomcat 404 error: The origin server did not find a current representation for the target

 红框圈出的部分Remove  然后进行添加新的项目文件资源路径


Tomcat 404 error: The origin server did not find a current representation for the target

Tomcat 404 error: The origin server did not find a current representation for the target

    Finish后点击Apply   然后重新运行项目之后就能访问到项目了。

相关文章: