JavaWeb404The origin server did not find a current representation for the target resource or is no

Posted rainbow-sea

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了JavaWeb404The origin server did not find a current representation for the target resource or is no相关的知识,希望对你有一定的参考价值。

技术图片

初学JavaWeb,本想试试自己的模块有没有什么问题,结果之前还能出页面这次打开直接遇到404页面问题,服务器成功启动了,但是默认页面都访问不了,上网查了一些解决办法都不太适用,后来看到有大佬提到项目web.xml的配置,修改url地址,于是找到了问题的起因。在重启服务器不好使之前,我更改过模块的模块名与目录名,找到模块对应的.iml文件,果然里面的一行代码并没有改过来。如下图:将代码改成当前对应的模块名之后,问题成功解决。

技术图片

以上是关于JavaWeb404The origin server did not find a current representation for the target resource or is no的主要内容,如果未能解决你的问题,请参考以下文章

IDEA的JavaWeb项目出现错误:HTTP Status 404 - /05_web/ type Status report message /05_web/ description The

IDEA的JavaWeb项目出现错误:HTTP Status 404 - /05_web/ type Status report message /05_web/ description The

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

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

运行 angular-cli serve 时如何指定“Access-Control-Allow-Origin”

使用Tomcat在服务器上部署Java JSP项目(关于Tomcat出现The origin server did not find a current ,找不到JRE_HOME错误)