问题描述:运行SpringBoot时发现端口已被占用
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.
解决方法:
1.在application.properties中将访问端口修改成没被使用的端口并重新运行。
此处我将端口从8080改成没被使用的8888,重新运行,可以看到程序正常运行中。
2.将被占用端口的进程阻断。
此方法内容较多,可根据下面的链接了解详情: