2019-08-17 14:14:28 +08:00
|
|
|
|
# zlt-microservices-platform
|
|
|
|
|
|
|
|
|
|
|
|
<p align="center">
|
|
|
|
|
|
<img src='https://img.shields.io/badge/license-Apache%202-4EB1BA.svg' alt='License'/>
|
|
|
|
|
|
<img src="https://img.shields.io/badge/Spring%20Boot-2.0.9.RELEASE-blue" alt="Downloads"/>
|
|
|
|
|
|
<img src="https://img.shields.io/badge/Spring%20Cloud-Finchley.SR4-blue" alt="Downloads"/>
|
|
|
|
|
|
<img src="https://img.shields.io/badge/Spring%20Cloud%20Alibaba-2.0.0.RELEASE-blue" alt="Downloads"/>
|
|
|
|
|
|
<img src="https://img.shields.io/badge/Layui-EasyWeb-yellowgreen" alt="Downloads"/>
|
|
|
|
|
|
</p>
|
2019-01-19 15:31:26 +08:00
|
|
|
|
|
2019-01-22 14:12:30 +08:00
|
|
|
|
|
2019-01-19 15:31:26 +08:00
|
|
|
|
## 如果您觉得有帮助,请点右上角 "Star" 支持一下谢谢
|
|
|
|
|
|
|
|
|
|
|
|
[TOC]
|
|
|
|
|
|
|
|
|
|
|
|
## 1. 项目介绍
|
|
|
|
|
|
|
2019-08-17 14:14:28 +08:00
|
|
|
|
* **技术交流群** [250883130](http://shang.qq.com/wpa/qunwpa?idkey=17544199255998bda0d938fb72b08d076c40c52c9904520b76eb5eb0585da71e) <a target="_blank" href="//shang.qq.com/wpa/qunwpa?idkey=ead54a4656cdd4377071855b016b292b1361103b29e94042e1e57499f6b69c38"><img border="0" src="//pub.idqqimg.com/wpa/images/group.png" alt="微服务技术交流群" title="微服务技术交流群"></a>
|
2019-02-24 22:52:16 +08:00
|
|
|
|
* **详细在线文档** [点击查看](https://www.kancloud.cn/zlt2000/microservices-platform/936236)
|
2019-08-17 14:14:28 +08:00
|
|
|
|
* **[项目更新日志](https://www.kancloud.cn/zlt2000/microservices-platform/936235)**
|
|
|
|
|
|
* **[文档更新日志](https://www.kancloud.cn/zlt2000/microservices-platform/936236)**
|
|
|
|
|
|
* **演示环境地址**: [http://mp.zlt2000.cn](http://mp.zlt2000.cn/)
|
2019-01-23 10:41:31 +08:00
|
|
|
|
* 账号密码:admin/admin
|
2019-02-27 14:29:37 +08:00
|
|
|
|
* APM监控账号密码:admin/admin
|
2019-03-04 15:41:29 +08:00
|
|
|
|
* Grafana账号:zlt/zlt
|
2019-03-15 10:30:51 +08:00
|
|
|
|
* txlcn事务管理器密码:admin
|
2019-03-21 09:59:08 +08:00
|
|
|
|
* 任务管理账号密码:admin/123456
|
2019-07-14 23:29:29 +08:00
|
|
|
|
* Sentinel:sentinel/sentinel
|
2019-03-07 16:54:56 +08:00
|
|
|
|
* **演示环境有全方位的监控示例:日志系统 + APM系统 + GPE系统**
|
2019-03-07 16:30:58 +08:00
|
|
|
|
* Gitee地址:https://gitee.com/zlt2000/microservices-platform
|
|
|
|
|
|
* Github地址:https://github.com/zlt2000/microservices-platform
|
2019-01-19 15:31:26 +08:00
|
|
|
|
* 前后端分离的企业级微服务架构
|
2019-07-05 13:36:38 +08:00
|
|
|
|
* 主要针对解决微服务和业务开发时常见的**非功能性需求**
|
2019-01-19 15:31:26 +08:00
|
|
|
|
* 深度定制`Spring Security`真正实现了基于`RBAC`、`jwt`和`oauth2`的无状态统一权限认证的解决方案
|
2019-08-17 14:14:28 +08:00
|
|
|
|
* 提供应用管理,方便第三方系统接入,**支持多租户(应用隔离)**
|
2019-08-09 00:46:18 +08:00
|
|
|
|
* 引入组件化的思想实现高内聚低耦合并且高度可配置化
|
2019-01-19 15:31:26 +08:00
|
|
|
|
* 注重代码规范,严格控制包依赖,每个工程基本都是最小依赖
|
|
|
|
|
|
* 非常适合学习和企业中使用
|
|
|
|
|
|
|
2019-04-12 13:54:37 +08:00
|
|
|
|
> 重构于开源项目OCP&cp:https://gitee.com/owenwangwen/open-capacity-platform
|
|
|
|
|
|
|
2019-02-27 14:29:37 +08:00
|
|
|
|
|
|
|
|
|
|
|
2019-03-05 15:23:14 +08:00
|
|
|
|
## 2. 项目总体架构图
|
2019-02-27 14:29:37 +08:00
|
|
|
|
|
2019-07-13 21:16:18 +08:00
|
|
|
|

|
2019-02-27 14:29:37 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## 3. 功能介绍
|
2019-01-19 15:31:26 +08:00
|
|
|
|
|
|
|
|
|
|
* **统一认证功能**
|
|
|
|
|
|
* 支持oauth2的四种模式登录
|
|
|
|
|
|
* 支持用户名、密码加图形验证码登录
|
|
|
|
|
|
* 支持手机号加密码登录
|
|
|
|
|
|
* 支持openId登录
|
|
|
|
|
|
* 支持第三方系统单点登录
|
|
|
|
|
|
* **分布式系统基础支撑**
|
2019-04-21 21:53:10 +08:00
|
|
|
|
- 服务注册发现、路由与负载均衡
|
|
|
|
|
|
- 服务降级与熔断
|
|
|
|
|
|
- 服务限流(url/方法级别)
|
|
|
|
|
|
- 统一配置中心
|
|
|
|
|
|
- 统一日志中心
|
2019-05-09 23:28:41 +08:00
|
|
|
|
- 统一搜索中心
|
2019-04-21 21:53:10 +08:00
|
|
|
|
- 统一分布式缓存操作类、cacheManager配置扩展
|
|
|
|
|
|
- 分布式锁
|
|
|
|
|
|
- 分布式任务调度器
|
|
|
|
|
|
- 支持CI/CD持续集成(包括前端和后端)
|
|
|
|
|
|
- 分布式Id生成器
|
|
|
|
|
|
- 分布式事务(强一致性/最终一致性)
|
2019-08-17 14:14:28 +08:00
|
|
|
|
- 日志链路追踪
|
2019-01-22 14:12:30 +08:00
|
|
|
|
* **系统监控功能**
|
2019-04-21 21:53:10 +08:00
|
|
|
|
- 服务调用链监控
|
|
|
|
|
|
- 应用拓扑图
|
|
|
|
|
|
- 慢查询SQL监控
|
|
|
|
|
|
- 应用吞吐量监控(qps、rt)
|
|
|
|
|
|
- 服务降级、熔断监控
|
|
|
|
|
|
- 服务限流监控
|
|
|
|
|
|
- 微服务服务监控
|
|
|
|
|
|
- 服务器监控
|
|
|
|
|
|
- redis监控
|
|
|
|
|
|
- mysql监控
|
|
|
|
|
|
- elasticSearch监控
|
|
|
|
|
|
- nacos监控
|
|
|
|
|
|
- prometheus监控
|
2019-01-19 15:31:26 +08:00
|
|
|
|
* **业务基础功能支撑**
|
2019-08-09 00:46:18 +08:00
|
|
|
|
* 多租户(应用隔离)
|
2019-01-19 15:31:26 +08:00
|
|
|
|
* 高性能方法级幂等性支持
|
|
|
|
|
|
* RBAC权限管理,实现细粒度控制(方法、url级别)
|
|
|
|
|
|
* 快速实现导入、导出功能
|
|
|
|
|
|
* 数据库访问层自动实现crud操作
|
|
|
|
|
|
* 代码生成器
|
|
|
|
|
|
* 基于Hutool的各种便利开发工具
|
|
|
|
|
|
* 网关聚合所有服务的Swagger接口文档
|
|
|
|
|
|
* 统一跨域处理
|
|
|
|
|
|
* 统一异常处理
|
|
|
|
|
|
|
2019-02-27 14:29:37 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## 4. 模块说明
|
2019-01-19 15:31:26 +08:00
|
|
|
|
|
|
|
|
|
|
```lua
|
|
|
|
|
|
central-platform -- 父项目,公共依赖
|
|
|
|
|
|
│ ├─zlt-business -- 业务模块一级工程
|
|
|
|
|
|
│ │ ├─user-center -- 用户中心[7000]
|
|
|
|
|
|
│ │ ├─file-center -- 文件中心[5000]
|
2019-02-24 22:52:16 +08:00
|
|
|
|
│ │ ├─code-generator -- 代码生成器[7300]
|
2019-05-10 23:43:56 +08:00
|
|
|
|
│ │ ├─search-center -- 搜索中心
|
|
|
|
|
|
│ │ │ ├─search-client -- 搜索中心客户端
|
|
|
|
|
|
│ │ │ ├─search-server -- 搜索中心服务端[7100]
|
2019-01-19 15:31:26 +08:00
|
|
|
|
│ │─zlt-commons -- 通用工具一级工程
|
|
|
|
|
|
│ │ ├─zlt-auth-client-spring-boot-starter -- 封装spring security client端的通用操作逻辑
|
|
|
|
|
|
│ │ ├─zlt-common-spring-boot-starter -- 封装通用操作逻辑
|
|
|
|
|
|
│ │ ├─zlt-db-spring-boot-starter -- 封装数据库通用操作逻辑
|
|
|
|
|
|
│ │ ├─zlt-log-spring-boot-starter -- 封装log通用操作逻辑
|
|
|
|
|
|
│ │ ├─zlt-redis-spring-boot-starter -- 封装Redis通用操作逻辑
|
|
|
|
|
|
│ │ ├─zlt-ribbon-spring-boot-starter -- 封装Ribbon和Feign的通用操作逻辑
|
2019-01-22 14:12:30 +08:00
|
|
|
|
│ │ ├─zlt-sentinel-spring-boot-starter -- 封装Sentinel的通用操作逻辑
|
2019-01-19 15:31:26 +08:00
|
|
|
|
│ │ ├─zlt-swagger2-spring-boot-starter -- 封装Swagger通用操作逻辑
|
|
|
|
|
|
│ ├─zlt-config -- 配置中心
|
|
|
|
|
|
│ ├─zlt-doc -- 项目文档
|
|
|
|
|
|
│ ├─zlt-gateway -- api网关一级工程
|
2019-01-23 10:41:31 +08:00
|
|
|
|
│ │ ├─zuul-gateway -- netflix-zuul[9900]
|
2019-01-19 15:31:26 +08:00
|
|
|
|
│ ├─zlt-job -- 分布式任务调度一级工程
|
|
|
|
|
|
│ │ ├─job-admin -- 任务管理器[8081]
|
|
|
|
|
|
│ │ ├─job-core -- 任务调度核心代码
|
|
|
|
|
|
│ │ ├─job-executor-samples -- 任务执行者executor样例[8082]
|
|
|
|
|
|
│ ├─zlt-monitor -- 监控一级工程
|
|
|
|
|
|
│ │ ├─sc-admin -- 应用监控[6500]
|
|
|
|
|
|
│ │ ├─log-center -- 日志中心[6200]
|
|
|
|
|
|
│ ├─zlt-uaa -- spring-security认证中心[8000]
|
|
|
|
|
|
│ ├─zlt-register -- 注册中心Nacos[8848]
|
|
|
|
|
|
│ ├─zlt-web -- 前端一级工程
|
|
|
|
|
|
│ │ ├─back-web -- 后台前端[8066]
|
2019-03-15 10:30:51 +08:00
|
|
|
|
│ ├─zlt-transaction -- 事务一级工程
|
|
|
|
|
|
│ │ ├─txlcn-tm -- tx-lcn事务管理器[7970]
|
|
|
|
|
|
│ ├─zlt-demo -- demo一级工程
|
2019-04-21 21:53:10 +08:00
|
|
|
|
│ │ ├─txlcn-demo -- txlcn分布式事务demo
|
2019-09-15 11:27:37 +08:00
|
|
|
|
│ │ ├─seata-demo -- seata分布式事务demo
|
2019-04-21 21:53:10 +08:00
|
|
|
|
│ │ ├─sharding-jdbc-demo -- sharding-jdbc分库分表demo
|
|
|
|
|
|
│ │ ├─rocketmq-demo -- rocketmq和mq事务demo
|
2019-01-19 15:31:26 +08:00
|
|
|
|
```
|
|
|
|
|
|
|
2019-02-27 14:29:37 +08:00
|
|
|
|
|
2019-08-17 14:14:28 +08:00
|
|
|
|
## 5. 交流反馈
|
|
|
|
|
|
* 有问题先看看 [F&Q](https://www.kancloud.cn/zlt2000/microservices-platform/981382) 中有没有相关的回答
|
2019-08-27 21:01:10 +08:00
|
|
|
|
|
2019-08-17 14:14:28 +08:00
|
|
|
|
* 欢迎提交`ISSUS`,请写清楚问题的具体原因,重现步骤和环境(上下文)
|
2019-08-27 21:01:10 +08:00
|
|
|
|
|
2019-08-17 14:14:28 +08:00
|
|
|
|
* 项目/微服务交流请进群:<a target="_blank" href="//shang.qq.com/wpa/qunwpa?idkey=ead54a4656cdd4377071855b016b292b1361103b29e94042e1e57499f6b69c38"><img border="0" src="//pub.idqqimg.com/wpa/images/group.png" alt="微服务技术交流群" title="微服务技术交流群"></a>
|
2019-08-27 21:01:10 +08:00
|
|
|
|
|
2019-08-17 14:18:49 +08:00
|
|
|
|
* 个人博客:https://blog.csdn.net/zlt2000
|
2019-08-27 21:01:10 +08:00
|
|
|
|
|
2019-08-27 17:44:29 +08:00
|
|
|
|
* 个人邮箱:zltdiablo@163.com
|
2019-08-27 21:01:10 +08:00
|
|
|
|
|
|
|
|
|
|
* 个人公众号:[陶陶技术笔记](https://gitee.com/zlt2000/images/raw/master/公众号.jpg)
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-08-17 14:14:28 +08:00
|
|
|
|
|
|
|
|
|
|
## 6. 截图(点击可大图预览)
|
2019-01-19 15:31:26 +08:00
|
|
|
|
<table>
|
2019-05-09 23:28:41 +08:00
|
|
|
|
<tr>
|
|
|
|
|
|
<td><img src="https://gitee.com/zlt2000/images/raw/master/首页.png"/></td>
|
|
|
|
|
|
<td><img src="https://gitee.com/zlt2000/images/raw/master/用户搜索.png"/></td>
|
|
|
|
|
|
</tr>
|
2019-03-04 14:14:55 +08:00
|
|
|
|
<tr>
|
|
|
|
|
|
<td><img src="https://gitee.com/zlt2000/images/raw/master/server_metrics.png"/></td>
|
|
|
|
|
|
<td><img src="https://gitee.com/zlt2000/images/raw/master/application_metrics.png"/></td>
|
|
|
|
|
|
</tr>
|
2019-02-02 10:27:48 +08:00
|
|
|
|
<tr>
|
|
|
|
|
|
<td><img src="https://gitee.com/zlt2000/images/raw/master/持续集成2.png"/></td>
|
2019-02-04 14:18:47 +08:00
|
|
|
|
<td><img src="https://gitee.com/zlt2000/images/raw/master/sonar结果.png"/></td>
|
2019-02-02 10:27:48 +08:00
|
|
|
|
</tr>
|
2019-02-27 14:29:37 +08:00
|
|
|
|
<tr>
|
|
|
|
|
|
<td><img src="https://gitee.com/zlt2000/images/raw/master/skywalking首页.png"/></td>
|
|
|
|
|
|
<td><img src="https://gitee.com/zlt2000/images/raw/master/skywalking应用拓扑图.png"/></td>
|
|
|
|
|
|
</tr>
|
2019-01-19 15:31:26 +08:00
|
|
|
|
<tr>
|
2019-02-02 10:27:48 +08:00
|
|
|
|
<td><img src="https://gitee.com/zlt2000/images/raw/master/elk.png"/></td>
|
2019-01-30 00:00:03 +08:00
|
|
|
|
<td><img src="https://gitee.com/zlt2000/images/raw/master/任务中心.png"/></td>
|
2019-01-19 15:31:26 +08:00
|
|
|
|
</tr>
|
2019-01-19 16:05:00 +08:00
|
|
|
|
<tr>
|
2019-01-30 00:00:03 +08:00
|
|
|
|
<td><img src="https://gitee.com/zlt2000/images/raw/master/日志中心02.png"/></td>
|
|
|
|
|
|
<td><img src="https://gitee.com/zlt2000/images/raw/master/慢查询sql.png"/></td>
|
2019-01-19 16:05:00 +08:00
|
|
|
|
</tr>
|
2019-01-19 15:31:26 +08:00
|
|
|
|
<tr>
|
2019-01-30 00:00:03 +08:00
|
|
|
|
<td><img src="https://gitee.com/zlt2000/images/raw/master/应用监控01.png"/></td>
|
|
|
|
|
|
<td><img src="https://gitee.com/zlt2000/images/raw/master/应用监控02.png"/></td>
|
2019-01-19 15:31:26 +08:00
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
2019-01-30 00:00:03 +08:00
|
|
|
|
<td><img src="https://gitee.com/zlt2000/images/raw/master/nacos-discovery.png"/></td>
|
2019-02-02 10:27:48 +08:00
|
|
|
|
<td><img src="https://gitee.com/zlt2000/images/raw/master/应用吞吐量监控.png"/></td>
|
2019-01-30 23:01:16 +08:00
|
|
|
|
</tr>
|
2019-01-19 15:31:26 +08:00
|
|
|
|
</table>
|