Files
bocai/run-project.bat
2026-01-30 09:28:11 +08:00

18 lines
649 B
Batchfile
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
rem 启动后端Spring Boot应用
echo 正在启动后端应用...
start "后端服务" cmd /k "cd /d e:\git_resp\bocai && java -Dlogging.level.root=info -Dlogging.file.name=logs/application.log -jar target/bocai-0.0.1-SNAPSHOT.jar"
rem 等待后端启动
ping 127.0.0.1 -n 5 > nul
rem 启动前端Vue应用
echo 正在启动前端应用...
start "前端服务" cmd /k "cd /d C:\Users\admin\Desktop\boc\frontend && npm run dev"
echo 前后端应用已启动!
echo 后端服务http://localhost:8080
echo 前端服务:通常为 http://localhost:5173 (具体端口请查看前端启动日志)
echo 按任意键退出...
pause > nul