在起项目时报下面异常,这是因为我本地起着nginx呢(忘了nginx我设置的是开机自启动),占用着8080端口,用于前端Vue的开发,
所以直接修改yml/properties配置文件中的端口重新启动就可以了
下面是报的错误
2021-02-24 15:56:16[ restartedMain:30784 ] [] - [ERROR] org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter-report:40 -
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.