1.将部署在服务器上的工程移除

右击Servers下的服务器,选择Add and Remove,右栏中选中项目,选择中间的Remove,或者直接选择Remove All。

2.双击Servers下的服务器

 ①将Use workspace metadata(does not modify Tomcat installation) (即第一个选项), 改为 Use Tomcat installation(takes control of Tomcat installation) ,即选择tomcat的安装目录来作为项目的发布目录。

②将“Deploy path ” 后面的值默认是“wtpwebapps”,改为"webapps",也就是tomcat中发布项目所在文件夹的名字。

Tomcat在Eclipse中正常启动之后localhost://8080报404错误

Tomcat在Eclipse中正常启动之后localhost://8080报404错误

Tomcat在Eclipse中正常启动之后localhost://8080报404错误

3.重启服务器,localhost://8080就可以正常访问了。

祝君好运。

相关文章: