eclipse中使用Tomcat运行java文件时,出现“the server cannot be started because one or more of the ports are invalid. open the server editor and correct the invalid ports.”
报错译文:服务器无法启动,因为一个或多个端口无效。打开服务器编辑器并纠正无效端口。
出现这个问题原因是我们刚刚安装好Tomcat时并没有在浏览器中配置Tomcat的端口。
打开eclipse。
点击windows->show views->Others
双击Servers
保存后,再次运行即可。