启动命令
chcp 65001 //切换utf-8
@echo off
start javaw -jar test-1.0-SNAPSHOT.jar --spring.profiles.active=prod
echo ' 启动成功,按任意键结束'
pause
exit
查看后台进程命令
wmic process where caption="javaw.exe" get processid,caption,commandline /value
kill进程命令
taskkill /PID 24160 -t -f