【springboot】idea项目启动端口被占用

问题

idea本地启动springboot项目端口老是被占用

解决

关闭被占用的端口进程

步骤:

1. win+R打开程序框

【springboot】idea项目启动端口被占用_第1张图片

2. 查出被占用端口的进程id

netstat -ano | finderstr 端口号

例如 netstat -ano | finderstr  8101

【springboot】idea项目启动端口被占用_第2张图片

3.杀死进程

taskkill /pid 进程id -t -f

例如 taskkill /pid 2388 -t -f

在这里插入图片描述

你可能感兴趣的:(spring,boot,intellij-idea,后端)