
1、找到端口对应pid
netstat -aon|findstr "8080"
# 输出:
TCP 0.0.0.0:8888 0.0.0.0:0 LISTENING 10904
TCP [::]:8888 [::]:0 LISTENING 10904
2、关闭
taskkill /pid {查询出来的pid} -f
# 以1中输出为例:
taskkill /pid 10904 -f
Jar包安装成Windows自启动服务
SpringBoot中使用Knife4J