2 Star 4 Fork 1

veromca/springboot

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
startup.bat 1.14 KB
一键复制 编辑 原始数据 按行查看 历史
liusongqing 提交于 2016-12-23 13:54 . add startup.bat
@echo on
setlocal
set SERVER_IP=""
if not "%JRE_HOME%" == "" goto gotJreHome
if not "%JAVA_HOME%" == "" goto gotJavaHome
echo Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
echo At least one of these environment variable is needed to run this program
goto end
:gotJavaHome
rem No JRE given, use JAVA_HOME as JRE_HOME
set "JRE_HOME=%JAVA_HOME%"
:gotJreHome
rem Check if we have a usable JRE
if not exist "%JRE_HOME%\bin\java.exe" goto noJreHome
if not exist "%JRE_HOME%\bin\javaw.exe" goto noJreHome
goto okJava
:noJreHome
rem Needed at least a JRE
echo The JRE_HOME environment variable is not defined correctly
echo This environment variable is needed to run this program
goto exit
:okJava
rem Don't override _RUNJAVA if the user has set it previously
if not "%_RUNJAVA%" == "" goto gotRunJava
rem Set standard command for invoking Java.
rem Also note the quoting as JRE_HOME may contain spaces.
set _RUNJAVA="%JRE_HOME%\bin\java.exe"
:gotRunJava
if "%TITLE%" == "" set TITLE=Light-ConfigCenter
set _EXECJAVA=start "%TITLE%" %_RUNJAVA%
%_EXECJAVA% -Daddress.server.ip=%SERVER_IP% -jar springbootdemo-1.0.1-SNAPSHOT.jar
goto end
:end
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/veromca/springboot.git
git@gitee.com:veromca/springboot.git
veromca
springboot
springboot
master

搜索帮助