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