项目场景:
启动springboot项目端口被占用
最近在学SpringBoot,但是运行时经常发生端口被占用的情况;控制台报错:Verify the connector’s configuration, identify and stop any process that’s listening on port 8080, or configure this application to listen on another port.
网上的教程都是让改端口,但是还是会出现第二次运行时,控制台报错:端口被占用;
问题描述
原因分析:
端口号被占用
因为上一次的项目还未关闭
解决方案:
提示:修改端口号 或者在cmd里面结束占用改端口号的进程
1、
2、
直接点击终止进程 就可以成功运行下一次的项目了