解决访问 http://localhost:8080/ 报404错误问题

原因:eclipse将tomcat的项目发布目录(tomcat 目录中的webapp)重定向了,所以你会发现在tomcat安装目录下的webapp目录里面找不到你的项目文件。
解决方法:
重新配置下tomcat服务器,
1.选择Use tomcat installation(Task control of Tomcat installation) 即选择tomcat的安装目录来作为项目的发布目录。
2.将Deploy Path的默认值"wtpwebapps"改成"webapps"。
解决访问 http://localhost:8080/ 报404错误问题