crm_pro-master/72crm.bat

25 lines
783 B
Batchfile
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
title ${project.artifactId}
rem -------------------------------------------------------------------------
rem
rem 使用说明:
rem
rem 1: 打包时默认使用application-test.yml配置文件如需要更改直接更改下面的命令即可如 -Dspring.profiles.include=core,prod
rem
rem -------------------------------------------------------------------------
setlocal & pushd
set JAVA_OPTS=-Dspring.profiles.include=core,test
if "${project.artifactId}" == "gateway" (
set JAVA_OPTS =
)
rem -Xms分配堆最小内存默认为物理内存的1/64-Xmx分配最大内存默认为物理内存的1/4 如果程序会崩溃请将此值调高
java -Xms128m -Xmx512m -jar %JAVA_OPTS% ${project.artifactId}-${project.version}.jar
endlocal & popd
pause