如果你的控制台显示这个,则说明你的端口号被一直占用,只要将该端口的程序给关闭,即可使用
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2022-03-03 17:11:07.034 ERROR 1628 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Web server failed to start. Port 8081 was already in use.
Action:
Identify and stop the process that's listening on port 8081 or configure this application to listen on another port.