SpringBoot_Web server failed to start. Port 7878 was already in use.

端口被占用

注:我是因为已经运行成功,再次运行就会出现端口号被占用的情况,因为已经运行成功了,也有可能出现别的进程占用了端口号,建议搜索对应的端口号进行关闭,或直接在application.properties内换一个端口号使用。

  • 报错信息:
    Web server failed to start. Port 7878 was already in use.

  • 详细信息:

Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
2020-07-15 11:06:29.568 ERROR 12316 — [ main] o.s.b.d.LoggingFailureAnalysisReporter :


APPLICATION FAILED TO START


Description:

Web server failed to start. Port 7878 was already in use.

Action:

Identify and stop the process that’s listening on port 7878 or configure this application to listen on another port.

  • 图片信息:
    SpringBoot_Web server failed to start. Port 7878 was already in use.

解决方法:

  • 打开任务管理器,搜索Java,关闭进程
    SpringBoot_Web server failed to start. Port 7878 was already in use.
  • 再次运行
    SpringBoot_Web server failed to start. Port 7878 was already in use.