問題
啟動SpringBoot項目后發現啟動失敗,控制台輸出以下內容
Description: The Tomcat connector configured to listen on port 8100 failed to start. The port may already be in use or the connector may be misconfigured. Action: Verify the connector's configuration, identify and stop any process that's listening on port 8100, or configure this application to listen on another port.'
端口號已被占用
查找占用端口的進程
打開命令窗口,輸入netstat -ano| 8100
,查看占用端口的進程的pid
這里是3184,因此將進程殺死就可以了。
殺死進程
Windows 下殺指定進程taskkill -F /pid 3184
再次啟動,運行成功。或者不用殺掉進程,替換這個端口也行!