我用的Eclipse,只需要修改tomcat的配置信息。 或者空跑tomcat,没报错,访问localhost:端口号报404 如下图: 选中间的即可,即:tomcat的启动位置选择tomcat的安装路径