spring boot@echo off
set port=8087
for /f "tokens=1-5" %%i in ('netstat -ano^|findstr ":%port%"') do (
 echo kill the process %%m who use the port
 taskkill /pid %%m -t -f
 goto q
)
:q
REM 启动jar包服务
REM @echo off
REM start javaw -jar MyBlog.jar
REM exit