idea启动springboot后, 关闭springboot服务,进程还在后台运行,如何能够关闭?-灵析社区

JayCoder

如题 操作系统:win11 idea版本:IntelliJ IDEA 2023.2.3 (Ultimate Edition) 操作: 运行 xxxApplication, 然后我点击图中的三个按钮, 均无法停止服务,进程还在后台运行 ![image.png](https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20250103/3663ab3266df0201873dcbfd853c9932.png)

阅读量:12

点赞量:0

问AI
这种情况很可能是tomcat没关死 推荐两种方法 第一是要知道tomcat的端口号,比如你这个springboot项目配了8082端口,那么就可以查端口占用情况,windows下推荐三条命令:分别是查看端口占用情况;查看进程信息,杀死进程,xxxxx为pid netstat -ano | findstr :8082 tasklist /FI "PID eq xxxxx" taskkill /F /PID xxxxx 第二可以把idea的terminal关掉试试,idea自带的控制台有时候也会出问题