# NewStart **Repository Path**: newstart_1/new-start ## Basic Information - **Project Name**: NewStart - **Description**: No description available - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-11-27 - **Last Updated**: 2026-01-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # NewStart Cloud 微服务项目 ## 📖 项目简介 基于 Spring Cloud Alibaba 的微服务架构项目,使用 Nacos 作为注册中心和配置中心。 ## 🏗️ 技术栈 - **Spring Boot**: 3.2.4 - **Spring Cloud**: 2023.0.1 - **Spring Cloud Alibaba**: 2023.0.1.0 - **Nacos**: 2.3.0 - **MyBatis-Plus**: 3.5.6 - **MySQL**: 8.0.33 - **Redis**: Latest - **RocketMQ**: 2.2.3 - **XXL-JOB**: 2.4.1 ## 📁 项目结构 ``` newstart-cloud/ ├── newstart-common/ # 公共模块 ├── newstart-gateway/ # 网关服务 (8080) └── newstart-game/ # 游戏服务 (8081) ``` ## 🚀 快速开始 ### 1. 环境准备 - JDK 17+ - Maven 3.6+ - MySQL 8.0+ - Redis - Nacos 2.3.0 ### 2. 启动 Nacos 项目使用服务器 Nacos:`114.55.14.45:8848` 访问控制台:http://114.55.14.45:8848/nacos - 用户名:nacos - 密码:nacos ### 3. 启动服务 ```bash # 方式1:使用脚本 start-microservices.bat # 方式2:手动启动 cd newstart-game mvn spring-boot:run cd newstart-gateway mvn spring-boot:run ``` ### 4. 验证 访问:http://localhost:8080/api/games ## 📊 服务列表 | 服务 | 端口 | 说明 | |------|------|------| | newstart-gateway | 8080 | 网关服务 | | newstart-game | 8081 | 游戏服务 | ## 🔗 访问地址 - 网关:http://localhost:8080 - Nacos:http://114.55.14.45:8848/nacos ## 📚 文档 - [项目结构说明](./项目结构说明.md) - [微服务改造完成说明](./微服务改造完成说明.md) - [Nacos安装部署](./Nacos安装部署.md) - [Spring Cloud微服务改造方案](./Spring Cloud微服务改造方案.md) ## 🎯 功能特性 - ✅ 服务注册与发现 - ✅ 统一网关入口 - ✅ 负载均衡 - ✅ 配置中心 - ✅ 游戏管理 - ✅ 文件上传下载 - ✅ 百度地图集成 - ✅ 阿里云 OSS - ✅ RocketMQ 消息队列 - ✅ XXL-JOB 定时任务 - ✅ 大数据导出 ## 📝 开发指南 ### 添加新服务 1. 在父 pom.xml 添加模块 2. 创建服务目录和 pom.xml 3. 添加 Nacos 配置 4. 在网关配置路由 ### 服务间调用 使用 OpenFeign 进行服务间调用(待实现) ## 🤝 贡献 欢迎提交 Issue 和 Pull Request ## 📄 License MIT License --- **最后更新**: 2024-12-24