当你拷贝别人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   然后重新运行项目之后就能访问到项目了。

相关文章:

  • 2021-08-07
  • 2021-06-28
  • 2021-08-02
  • 2022-12-23
  • 2021-10-08
  • 2021-07-23
  • 2021-04-21
猜你喜欢
  • 2021-11-27
  • 2021-09-26
  • 2021-11-28
  • 2021-11-05
  • 2021-09-30
  • 2021-11-12
相关资源
相似解决方案