在intelj idea中Debug启动tomcat时Address already in use:JVM_Bind

发布时间 2023-06-08 12:19:16作者: 且行且思

在debug重启web应用时,偶尔会报如下错误:Address already in use:JVM_Bind,一看端口占用

 

打开任务管理器,发现并没有java相关的进程。所以无法通过杀死进程来解除接口占用,可以通过如下方式解决

1.编辑服务器配置,Edit Configuration

 

2.点击Startup/Connection

 

3.选中debug,修改port,然后点击Apply应用,点击OK

4.重新debug运行tomcat,就解决了