SpringBlade - SaaS 微服务开发平台


Apache
跨平台
Java

软件简介

SpringBlade微服务开发平台

  • 采用前后端分离的模式,前端开源两个框架:Sword (基于 React、Ant Design)、Saber (基于 Vue、Element-UI)
  • 后端采用SpringCloud全家桶,并同时对其基础组件做了高度的封装,单独开源出一个框架:BladeTool
  • BladeTool已推送至Maven中央库,直接引入即可,减少了工程的臃肿,也可更注重于业务开发
  • 集成Sentinel从流量控制、熔断降级、系统负载等多个维度保护服务的稳定性。
  • 注册中心、配置中心选型Nacos,为工程瘦身的同时加强各模块之间的联动。
  • 使用Traefik进行反向代理,监听后台变化自动化应用新的配置文件。
  • 极简封装了多租户底层,用更少的代码换来拓展性更强的SaaS多租户系统。
  • 借鉴OAuth2,实现了多终端认证系统,可控制子系统的token权限互相隔离。
  • 借鉴Security,封装了Secure模块,采用JWT做Token认证,可拓展集成Redis等细颗粒度控制方案。
  • 稳定生产了一年,经历了从Camden -> Hoxton的技术架构,也经历了从fat jar -> docker -> k8s + jenkins的部署架构
  • 项目分包明确,规范微服务的开发模式,使包与包之间的分工清晰。

架构图

工程结构

SpringBlade
├── blade-auth -- 授权服务提供
├── blade-common -- 常用工具封装包
├── blade-gateway -- Spring Cloud 网关
├── blade-ops -- 运维中心
├    ├── blade-admin -- spring-cloud后台管理
├    ├── blade-develop -- 代码生成
├── blade-service -- 业务模块
├    ├── blade-desk -- 工作台模块 
├    ├── blade-log -- 日志模块 
├    ├── blade-system -- 系统模块 
├    └── blade-user -- 用户模块 
├── blade-service-api -- 业务模块api封装
├    ├── blade-desk-api -- 工作台api 
├    ├── blade-dict-api -- 字典api 
├    ├── blade-system-api -- 系统api 
└──  └── blade-user-api -- 用户api

官网

在线演示

项目地址

技术文档

界面

BladeX 工作流一览

![](/static/assets/osapp/images/28f953a94d46eca97404437959eb31db.png) ![](/static/assets/osapp/images/e6b1f267d3b83b299bfa195be59c4230.png)
![](/static/assets/osapp/images/9c9cdb488578a21e84caaa52ae2bd5d8.png) ![](/static/assets/osapp/images/03ca854a2b2b1c3866b239cc8274e037.png)
![](/static/assets/osapp/images/c7d983d470392daffb0fcde8a32dd026.png) ![](/static/assets/osapp/images/41858b0e923173bce5d057762b1702fc.png)

Sword 界面一览

![](/static/assets/osapp/images/43180eafa8c0eddbd78e20d9b1c76bc4.png) ![](/static/assets/osapp/images/0815cf425d2e771616cc954b94157bc2.png)
![](/static/assets/osapp/images/568c53e31d5e07ca3300cca5af92e0fa.png) ![](/static/assets/osapp/images/00bd78dfa9872e8ecfa2a2b4a67a7ed1.png)
![](/static/assets/osapp/images/550f448eb83a2b9a53e4b5ac09fe211a.png) ![](/static/assets/osapp/images/e7690da9a982640fe6dbb6d6ed61808a.png)
![](/static/assets/osapp/images/b09adb3c9b5fecda3bc0b1bc1ebdb4cf.png) ![](/static/assets/osapp/images/908362f219223ce4fd5c49ccb6b17f99.png)
![](/static/assets/osapp/images/cf446fb95a3f2407d3b5347435f919d7.png) ![](/static/assets/osapp/images/f9dcb28448c6019c7d4f3a24f2df48dc.png)

Saber 界面一览

![](/static/assets/osapp/images/2134d7f1dc515ec6bb4190e322dd5872.png) ![](/static/assets/osapp/images/42f8a2b7bdf36b53c9418ca404c6f1e1.png)
![](/static/assets/osapp/images/26bd17b320980929d8d686bc156e8bb6.png) ![](/static/assets/osapp/images/bceef88496f6513f5d8b6777d6913406.png)
![](/static/assets/osapp/images/554b0c277291cbca8a7c211a17f18f2f.png) ![](/static/assets/osapp/images/5e6754b975ab21af18df0b299f06a72a.png)

监控界面一览

![](/static/assets/osapp/images/d27984caf10e1c270b2957ff099a8e7f.png) ![](/static/assets/osapp/images/ce7722e0213d5435aec997f9552d4541.png)
![](/static/assets/osapp/images/468308a45bf9e5645c2b77395fcb22aa.png) ![](/static/assets/osapp/images/b5766b1d85805e5751c138e08b865e95.png)
![](/static/assets/osapp/images/6c54bdae3cc913a9aeaf746e70bf6f29.png) ![](/static/assets/osapp/images/e3b41cffe1edf8b9e90d0bf76640fe91.png)
![](/static/assets/osapp/images/5539832e044c625fd4bc22101af3bfe7.png) ![](/static/assets/osapp/images/efda34c8c5f4008d6d38760d79e34915.png)
![](/static/assets/osapp/images/9c8b9e5a36f550480ec8e621ac742db3.png) ![](/static/assets/osapp/images/35ccc3a6a0bace3e5e1b893f8a0c54bb.png)
![](/static/assets/osapp/images/9c6d8d167b434dbb9cd62faca9ed3193.png) ![](/static/assets/osapp/images/a2a877a74c2f860185e464f2be74f006.png)