springboot报错-Web server failed to start. Port 8080 was already in use.
问题简述
背景: 第一次学习springboot,搭建入门项目,启动springboot控制台报错。
报错信息
报错内容:
***************************
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
报错截图:
问题分析
报错原因:端口被占用。
问题解决
解决方法一:修改端口; https://blog.csdn.net/zhouky1993/article/details/103974598
解决方法二:关闭占用端口的进程。 https://blog.csdn.net/zhouky1993/article/details/103976320
相关参考
- Spring Boot 报错:Web server failed to start. Port 8080 was already in use.
- Spring Boot 修改默认端口号