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
保存后,再次運行即可。