Terminating mvn spring-boot:run doesn't stop tomcat

后端 未结 18 1387
别那么骄傲
别那么骄傲 2020-12-04 07:11

I can successfully start spring-boot with mvn spring-boot, the documentation mentions to gracefully exit the application hit ctrl-c.



        
18条回答
  •  半阙折子戏
    2020-12-04 08:00

    Here is what I do on Mac:

    kill `lsof -i -n -P | grep TCP | grep 8080 | tr -s " " "\n" | sed -n 2p`
    

    It finds the PID using 8080 and kills it.

提交回复
热议问题