springboot项目启动端口占用

1.在cmd窗口中:输入netstat -ano 查看启动的进程ID
在这里插入图片描述
2.杀掉该进程:taskkill /t /f /pid
在这里插入图片描述
完成。

注:相关命令如下:
/t: 杀掉指定进程和由它启动的子进程。
/f: 强制终止指定进程
/pid: 要终止的进程的进程id

原文链接:https://blog.csdn.net/qq_34575174/article/details/83013355