SpringBoot项目jar包启动脚本-windows环境

startup.bat

  

@echo off
set path=X:\xxxxxxx\Java\JDK\jre\bin
START "项目名" "%path%\java" -jar 要启动的jar包路径

  

shutdown.bat         这是根据项目名停止项目运行

  

wmic  process where (commandline LIKE "%%项目名%%" and caption="java.exe") call terminate

  

posted @ 2019-12-13 15:33  风华㊣茂  阅读(2337)  评论(0编辑  收藏  举报