eclipse运行web项目出现 HTTP Status 404-未找到

eclipse运行web项目出现 HTTP Status 404-未找到

web 服务器运行项目出现:HTTP Status 404-未找到
Type Status Report
message/
desription The requested resouece is not available
Apache Tomcat/8.0.52
在这里插入图片描述
(同时要注意端口号、URL是否正确、重复)

提前添加好Servers Tomcat

1、 运行不了服务器,那就创建web目录 html,在项目中”WebContent”>New>Other…
在这里插入图片描述 2、添加html 在这里插入图片描述
3、填写名称(index.html)
在这里插入图片描述
4、完成添加
在这里插入图片描述
5、写代码
在这里插入图片描述
6、保存,运行
在这里插入图片描述

发布了26 篇原创文章 · 获赞 61 · 访问量 9239

猜你喜欢

转载自blog.csdn.net/HYD696/article/details/104814752