TACZ WebService Core 是一个基于 Spring Boot 构建的高性能后端服务,专为 TACZ (Timeless and Classics Zero) 枪械模组及相关社区生态提供数据支持。它集成了用户认证、数据统计、排行榜、资格查询以及与 Minecraft 服务器的实时数据同步功能。
/api/mc/**)X-Server-API-Key 安全认证使用 Docker Compose 快速启动 MySQL 和 Redis:
docker-compose up -d
修改 src/main/resources/application.properties:
# 数据库配置 spring.datasource.url=jdbc:mysql://localhost:3306/tacz?useSSL=false spring.datasource.username=root spring.datasource.password=12345678 # Redis 配置 spring.data.redis.host=localhost spring.data.redis.port=6379 # MC 服务器 API Key (生产环境务必修改) server.api-key=tacz-server-secret-key-123456
./gradlew bootRun
应用启动后,访问 http://localhost:8080。
本项目提供两种 API 文档格式:
在线交互式文档 (Swagger UI):
静态文档:
欢迎提交 Issue 和 Pull Request!
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)本项目采用 Apache License 2.0 许可证。