ChIoT 是一个基于 Spring Cloud Alibaba 微服务架构的后端管理平台,包含网关、认证授权、系统管理等核心服务,为物联网应用提供统一的服务入口、身份认证与 RBAC 权限管理能力。
| 技术 | 版本 | 说明 |
|---|---|---|
| Spring Boot | 3.2.4 | 基础框架 |
| Spring Cloud | 2023.0.1 | 微服务框架 |
| Spring Cloud Alibaba | 2023.0.1.0 | 服务注册与配置中心(Nacos) |
| Spring Authorization Server | - | OAuth2 认证授权 |
| MyBatis-Plus | 3.5.9 | ORM 框架 |
| Redis | - | 缓存与令牌存储 |
| MySQL | 5.7 | 数据库 |
| MapStruct / Lombok | - | 对象映射与代码精简 |
| MinIO / 阿里云 OSS | - | 分布式文件存储 |
| Docker Compose | - | 环境部署 |
chiot
├── common 公共模块
│ ├── common-core 核心工具类
│ ├── common-file 文件存储
│ ├── common-mybatis MyBatis 配置
│ ├── common-redis Redis 配置
│ ├── common-security 安全配置
│ └── common-web Web 配置
├── gateway 网关服务(9200)
├── authentication 认证服务(9201)
├── system 系统服务(9202)
│ ├── system-application 应用层
│ ├── system-domain 领域层
│ ├── system-domain-external 领域对外接口
│ ├── system-infrastructure 基础设施层
│ ├── system-interface 接口层
│ └── system-interface-external 接口对外层
└── docker Docker 部署资源
- JDK 17+
- Maven 3.8+
- MySQL 5.7+
- Redis
- Nacos
cd docker
docker-compose up -d导入以下脚本:
docker/mysql/db/1NacosSchema.sqldocker/mysql/db/2ChiotDatabase.sql
mvn clean install -DskipTests依次启动 GatewayApplication、AuthenticationApplication、SystemApplication(或打包后通过 java -jar 运行)。
| 服务 | 端口 |
|---|---|
| chiot-gateway | 9200 |
| chiot-authentication | 9201 |
| chiot-system | 9202 |
本项目基于 MIT License 开源。