导航栏

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脚本编写

posted @ 2020-12-21 12:58  RickZ  阅读(1652)  评论(0编辑  收藏  举报