#!/bin/bash

# Java 后端启动脚本（自动配置环境）

echo "======================================"
echo "Java 后端启动脚本"
echo "======================================"

# 初始化 SDKMAN
source "/Users/retirado/.sdkman/bin/sdkman-init.sh"

echo ""
echo "环境验证："
echo "- Java: $(java -version 2>&1 | head -1)"
echo "- Maven: $(mvn -version 2>&1 | head -1)"
echo ""

cd /Users/retirado/Program/ccProgram_0312/lesingle-edu-reading-platform-backend

echo ""
echo "启动 Java 后端..."
echo "======================================"

mvn spring-boot:run
