創(chuàng)建 .bat 文件,雙擊即可執(zhí)行。文件內(nèi)容入下
@echo off
start java -jar XXX-3.1.0-boot.jar --spring.profiles.active=sit >out.log &
while($true) {
Get-Content out.log -Tail 100
Start-Sleep -Seconds 1
}
創(chuàng)建 .bat 文件,雙擊即可執(zhí)行。文件內(nèi)容入下
@echo off
start java -jar XXX-3.1.0-boot.jar --spring.profiles.active=sit >out.log &
while($true) {
Get-Content out.log -Tail 100
Start-Sleep -Seconds 1
}