123456789101112131415161718192021222324 |
- @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
|