$jarPath = "target\gmp-mock-service.jar" if (-not (Test-Path $jarPath)) { Write-Host "JAR 文件不存在,请先执行 build.ps1 进行构建" -ForegroundColor Red exit 1 } $env:JAVA_OPTS = $env:JAVA_OPTS ?? "-Xms256m -Xmx512m" Write-Host "===== 启动 gmp-mock-service =====" -ForegroundColor Cyan Write-Host "端口: 8080" -ForegroundColor Cyan Write-Host "接口: POST http://localhost:8080/api/docx/export" -ForegroundColor Cyan java $env:JAVA_OPTS -jar $jarPath