task-reminder/start.bat
2025-05-28 09:50:20 +08:00

41 lines
765 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
echo ================================
echo Zeodao任务提醒系统启动脚本
echo ================================
echo 正在检查Java环境...
java -version
if %errorlevel% neq 0 (
echo 错误未找到Java环境请确保已安装JDK 21或更高版本
pause
exit /b 1
)
echo.
echo 正在检查Maven环境...
mvn -version
if %errorlevel% neq 0 (
echo 错误未找到Maven环境请确保已安装Maven 3.6+
pause
exit /b 1
)
echo.
echo 正在编译项目...
mvn clean compile
if %errorlevel% neq 0 (
echo 错误:项目编译失败
pause
exit /b 1
)
echo.
echo 正在启动应用...
echo 应用将在 http://localhost:8080 启动
echo 按 Ctrl+C 可以停止应用
echo.
mvn spring-boot:run
pause