erp-java/README.md

37 lines
1.1 KiB
Markdown
Raw 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.

# ERP Java 微服务后端
## 架构概述
基于Spring Cloud Alibaba的微服务架构逐步替换现有PHP系统。
## 技术栈
- **Java 17** + **Spring Boot 3.x**
- **Spring Cloud 2023.x** + **Spring Cloud Alibaba 2023.x**
- **MySQL 8.0** + **Redis 7.x**
- **Nacos 2.x** (服务注册与配置中心)
- **Spring Cloud Gateway** (API网关)
- **Seata** (分布式事务)
- **RocketMQ** (消息队列)
- **MyBatis Plus** (数据访问层)
## 服务划分
### 核心业务服务
1. `user-service` - 用户服务
2. `product-service` - 商品服务
3. `order-service` - 订单服务
4. `inventory-service` - 库存服务
5. `finance-service` - 财务服务
### 支撑服务
6. `admin-service` - 总控服务(租户、套餐管理)
7. `file-service` - 文件服务
8. `notification-service` - 通知服务
### 基础设施
9. `api-gateway` - API网关
10. `auth-service` - 认证服务
## 开发原则
1. **逐步迁移** - 新功能用Java开发旧功能逐步迁移
2. **数据同步** - PHP和Java系统数据双向同步
3. **接口兼容** - 保持API接口兼容性
4. **灰度发布** - 新服务逐步替换旧服务