Tomcat报错:The origin server did not find a current representation for the target resource

版权声明:版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_39501726/article/details/81560999

关于Tomcat报错:The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.的问题。

这个错就是Tomcat没有找到你的项目,在新建服务的时候需要修改Tomcat的安装路径和部署路径,默认如下;

我们要修改成自己本地的安装路径和Tomcat默认的执行路径,可以在Tomcat的sever.xml文件中查看(sever.xml路径:Tomcat安装路径/conf/sevet.xml),打开sever.xml文件,看到appBase="webapps";

所以服务要修改为本地的安装路径和Deploy path或者修改sever.xml的appBase,反正sever.xml的Deploy path和appBase要一致。

修改完成后就可以正常启动了。

猜你喜欢

转载自blog.csdn.net/qq_39501726/article/details/81560999