Loading

spring boot 在windows下的 批文件部署

目录结构如下:

 

 

install.bat

@echo off

SET JAVA_HOME="C:\Program Files\Java\jdk1.8.0_211\bin"
copy %JAVA_HOME%"\javaw.exe"  %JAVA_HOME%"\supplychain.exe"
start "supplychain-server" %JAVA_HOME%"\supplychain.exe" -jar supplychain-0.0.1-SNAPSHOT.jar

uninstall.bat

@echo off 
taskkill -f -t -im supplychain.exe

 

posted @ 2020-03-27 10:42  Sam Xiao  阅读(302)  评论(0编辑  收藏  举报