run-web.bat 551 B

12345678910111213141516171819202122232425262728293031
  1. @echo off
  2. rem /**
  3. rem * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
  4. rem * No deletion without permission, or be held responsible to law.
  5. rem *
  6. rem * Author: ThinkGem@163.com
  7. rem */
  8. echo.
  9. echo [信息] 打包Web工程,并运行Web工程。
  10. echo.
  11. %~d0
  12. cd %~dp0
  13. rem 打包Web工程(开始)
  14. cd ..
  15. call mvn clean package spring-boot:repackage -Dmaven.test.skip=true -U
  16. cd target
  17. rem 打包Web工程(结束)
  18. rem 根据情况修改 web.jar 为您的 jar 包名称
  19. mkdir app
  20. copy web.war app
  21. cd app
  22. jar -xvf web.war
  23. del web.war
  24. cd WEB-INF
  25. call startup.bat
  26. pause