技术架构选型
技术架构
我们选择了基于 Spring Boot 3 和 JDK17 进行底层建设,同时组件库的版本大多 也是最新的。这样做既能享受新技术带来的性能提升,也能体验到新特性带来的惊喜。
服务中使用到的后端技术列表如下:
# | 技术 | 名称 | 版本 | 官网 |
---|---|---|---|---|
1 | Spring Boot | 基础框架 | spring.io | |
2 | Spring Cloud Alibaba | 分布式微服务框架 | github.com/alibaba/spring-cloud-alibaba | |
3 | Spring Cloud Gateway | API 网关框架 | spring.io | |
4 | MyBatis-Plus | 持久层增强框架 | baomidou.com | |
5 | Redis | 分布式缓存数据库 | redis.io | |
6 | ShardingSphere | 数据库分片与治理生态 | shardingsphere.apache.org | |
7 | FastJson2 | JSON 序列化工具 | github.com/alibaba/fastjson2 | |
8 | HuTool | Java 工具类库 | hutool.cn | |
9 | Maven | 项目构建与依赖管理 | maven.apache.org | |
10 | Redisson | Redis Java 客户端 | redisson.org | |
11 | Sentinel | 流量控制与熔断框架 | github.com/alibaba/Sentinel | |
12 | TTL | 可传递的 ThreadLocal | github.com/alibaba/transmittable-thread-local |
前端架构
服务中使用到的前端技术列表如下:
# | 技术 | 名称 | 版本 | 官网 |
---|---|---|---|---|
1 | JS 框架 | Vue.js | vuejs.org | |
2 | UI 框架 | Ant Design Vue | antdv.com | |
3 | Ajax 请求 | Axios | axios-http.com | |
4 | 前端路由 | Vue Router | router.vuejs.org | |
5 | 前端脚手架 | Vue CLI | cli.vuejs.org |