72crm.bat 783 B

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