今天在启动Springboot的时候遇到了如下的问题
2020-09-07 10:28:16.067 ERROR 13540 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Web server failed to start. Port 8080 was already in use.
Action:
Identify and stop the process that's listening on port 8080 or configure this application to listen on another port.
Process finished with exit code 1
Web server failed to start. Port 8080 was already in use.
看到这个我才明白是怎么回事,我的8080端口被占用了(虽然我也不知道为啥被占用,但是确实是被占用了。)
解决办法如下:
在application.properties文件中更改一下tomcat启动的端口即可
server.port=8081(端口随便改)