# ============================================================ # 后端环境变量(IDEA 可通过 EnvFile 插件加载) # 或通过命令行: export $(cat .env | xargs) && ./mvnw spring-boot:run # ============================================================ # 数据库 DB_HOST=localhost DB_PORT=3306 DB_NAME=medicine_manager DB_USERNAME=root DB_PASSWORD=your_password_here # JWT JWT_SECRET=change_me_to_a_random_base64_string_at_least_256_bits JWT_EXPIRATION=86400000 JWT_REFRESH_EXPIRATION=604800000 # Redis(可选,不可用时自动跳过) REDIS_HOST=localhost REDIS_PORT=6379 REDIS_PASSWORD= # 服务端口 SERVER_PORT=8080