bat脚本编写--启动springboot服务


简单的使用bat脚本启动服务

新建一个txt文件
输入:java -jar xxxxx.jar (前提是java已经配置了环境变量)
将txt后缀改为bat后双击,即可启动对应的springboot服务

java -jar D:\zyqs-operation-jar\uploader.jar --spring.profiles.active=api -Dspring.config.location=application-api.yml

如何同时启动多个springboot服务

对每个服务创建脚本
再设计一个总脚本进行批量启动

@echo off
cd /d D:\zyqs-operation-jar
start "consumer" cmd /k call consumer.bat
start "producter" cmd /k call producter.bat
start "uploader" cmd /k call uploader.bat
echo over

链接

https://blog.csdn.net/lewky_liu/article/details/78536439

详细的脚本编写教程windows bat脚本编写


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM