Skip to content

Commit 7b5d076

Browse files
committed
SpringBoot初始化模板v2.1.6 新增OpenAI和智谱清言。
1 parent 9c27add commit 7b5d076

File tree

6 files changed

+53
-52
lines changed

6 files changed

+53
-52
lines changed

README.md

+23-22
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
> **作者:[AntonyCheng](https://github.com/AntonyCheng)**
88
>
9-
> **版本号:v2.1.6-jdk8&11-pre**
9+
> **版本号:v2.1.6-jdk8&11**
1010
>
1111
> **开源协议:[Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0.html)**
1212
>
@@ -60,7 +60,7 @@
6060
* [配置SpringBootAdmin](#配置springbootadmin)
6161
* [配置Canal](#配置canal)
6262
* [Canal简介](#canal简介)
63-
* [搭建Deployer&Adapter系统](#搭建deployeradapter系统-)
63+
* [搭建Deployer&Adapter系统](#搭建deployeradapter系统)
6464
* [搭建Deployer&Client系统](#搭建deployerclient系统)
6565
* [兼容Java8](#兼容java8)
6666
* [前端预览](#前端预览)
@@ -83,19 +83,19 @@
8383
- spring-boot-starter-freemaker == 模板引擎依赖
8484
- spring-boot-starter-test == Spring Boot Test 依赖
8585
- spring-boot-configuration-processor == 生成配置元数据信息,辅助开发工具
86-
- **UI**
86+
- **前端模板**
8787
- vue-admin-template 4.4.0 == 这是一个极简的 vue admin 管理后台,只包含了 Vue 2 & Element UI & axios & iconfont & permission control & lint
8888
- **Netty**
89-
- netty-all 4.1.109.Final == Netty 框架
89+
- netty-all 4.1.110.Final == Netty 框架
9090
- **数据驱动层**
9191
- mysql-connector-j 8.0.33 == Java 连接 MySQL 依赖
9292
- mybatis-plus-boot-starter 3.5.6 == MyBatis-Plus 框架
9393
- mybatis-plus-annotation 3.5.6 == MyBatis-Plus 注解依赖
9494
- shardingsphere-jdbc 5.5.0 == 分布式数据库解决方案
95-
- druid-spring-boot-3-starter 1.2.22 == Druid 连接池
95+
- druid-spring-boot-starter 1.2.23 == Druid 连接池
9696
- **工具类**
9797
- lombok 1.18.32 == POJO 简化工具
98-
- hutool-all 5.8.27 == Hutool 工具类
98+
- hutool-all 5.8.28 == Hutool 工具类
9999
- commons-lang3 3.14.0 == Apache Commons Lang 工具类
100100
- commons-io 2.16.1 == Apache Commons IO 工具类
101101
- commons-codec 1.17.0 == Apache Commons Codec 工具类
@@ -105,30 +105,30 @@
105105
- commons-compress 1.26.1 == Apache Commons Compress 工具类
106106
- okhttp 4.12.0 == OK Http 工具类
107107
- okio 3.9.0 == OK IO 工具类
108-
- fastjson2 2.0.49 == Fast JSON 工具类
109-
- fastjson2-extension-spring6 2.0.49 == FastJSON 工具拓展类
108+
- fastjson2 2.0.51 == Fast JSON 工具类
109+
- fastjson2-extension-spring6 2.0.51 == FastJSON 工具拓展类
110110
- ip2region 2.7.0 == 离线 IP 地址定位库
111111
- **权限校验**
112-
- sa-token-spring-boot-starter 1.37.0 == SaToken 认证鉴权框架
113-
- sa-token-core 1.37.0 == SaToken 认证鉴权框架核心依赖
114-
- sa-token-jwt 1.37.0 == SaToken 认证鉴权框架 JWT 依赖
115-
- sa-token-redis-jackson 1.37.0 == SaToken 认证鉴权框架 Redis 依赖
112+
- sa-token-spring-boot-starter 1.38.0 == SaToken 认证鉴权框架
113+
- sa-token-core 1.38.0 == SaToken 认证鉴权框架核心依赖
114+
- sa-token-jwt 1.38.0 == SaToken 认证鉴权框架 JWT 依赖
115+
- sa-token-redis-jackson 1.38.0 == SaToken 认证鉴权框架 Redis 依赖
116116
- **缓存服务**
117117
- spring-boot-starter-data-redis == Spring Data Redis 依赖
118118
- spring-boot-starter-cache == Spring Cache 依赖
119-
- redisson 3.29.0 == Redis 的基础上实现的 Java 驻内存数据网格
119+
- redisson 3.31.0 == Redis 的基础上实现的 Java 驻内存数据网格
120120
- **本地缓存服务**
121121
- caffeine 3.1.8 == Caffeine 本地缓存依赖
122122
- **消息队列**
123123
- spring-boot-starter-amqp == 支持 AMQP (高级消息队列协议)消息代理
124124
- spring-rabbit-test == Spring 支持对 RabbitMQ 消息队列的单元测试
125125
- **搜索引擎**
126-
- easy-es-boot-starter 2.0.0-bata8 == 简化 Elasticsearch 搜索引擎,可以像 Mybatis-Plus 操作 MySQL 一样操作 Elasticsearch 的开源框架
126+
- easy-es-boot-starter 2.0.0 == 简化 Elasticsearch 搜索引擎,可以像 Mybatis-Plus 操作 MySQL 一样操作 Elasticsearch 的开源框架
127127
- elasticsearch 7.14.0 == Elasticsearch 依赖
128128
- elasticsearch-rest-high-level-client 7.14.0 == ES 高级别客户端依赖
129129
- logstash-logback-encoder 7.3 == Logstash 依赖
130130
- **对象存储(OSS)**
131-
- cos_api 5.6.211 == 腾讯云 COS
131+
- cos_api 5.6.213 == 腾讯云 COS
132132
- aliyun-sdk-oss 3.17.4 == 阿里云 OSS
133133
- minio 8.5.10 == Minio 对象存储
134134
- **文件操作**
@@ -139,7 +139,7 @@
139139
- **接口文档 & API调试**
140140
- knife4j-openapi3-spring-boot-starter 4.5.0 == Knife4j 依赖
141141
- **外接平台(建议生产环境上使用 Docker 容器化技术自行部署一套平台,不要通过模板中的模块代码直接进行编译部署,主要原因是为了适配模板,外接平台中的某些代码被作者修改过)**
142-
- xxl-job-core 2.4.0 == 分布式定时任务管理平台
142+
- xxl-job-core 2.4.1 == 分布式定时任务管理平台
143143
- powerjob-worker-spring-boot-starter 4.3.9 == 更强劲的分布式定时任务管理平台(个人认为,针对于中小型项目而言,PowerJob 并不适用,可以对比一下 XxlJob ,就能发现 PowerJob 很多功能用不上,当然这得让开发者自己考虑,所以模板依然保留了 XxlJob 的集成模块)
144144
- spring-boot-admin-client 2.7.9 == SpringBoot 服务监控平台
145145
- canal.client 1.1.7 == Canal-Deployer & Canal-Adapter 数据同步系统
@@ -1063,15 +1063,15 @@ sa-token:
10631063
sa-token:
10641064
......
10651065
# todo 鉴权模式说明:
1066-
# 1.is-read-cookie=true; is-read-header==>false; token-prefix=null; ==> 标准的 Session + Cookie 模式(推荐,模板默认模式
1066+
# 1.is-read-cookie=true; is-read-header==>false; token-prefix=null; ==> 标准的 Session + Cookie 模式(推荐)
10671067
# 2.is-read-cookie=false; is-read-header==>true; token-prefix=exist;
10681068
# is-read-cookie=false; is-read-header==>true; token-prefix=null; ==> 标准的 Redis + JWT 模式(推荐)
1069-
# 3.is-read-cookie=false; is-read-header==>false; token-prefix=null;
1069+
# 3.is-read-cookie=true; is-read-header==>true; token-prefix=null; ==> Session + Cookie 模式和 Redis + JWT 模式共存,两者均能实现鉴权(推荐,模板默认模式)
1070+
# 4.is-read-cookie=true; is-read-header==>true; token-prefix=exist; ==> 仅有 Redis + JWT 模式起作用,作用等同于标准的 Redis + JWT 模式
1071+
# 5.is-read-cookie=false; is-read-header==>false; token-prefix=null;
10701072
# is-read-cookie=false; is-read-header==>false; token-prefix=exist; ==> 无法通过鉴权模式
1071-
# 4.is-read-cookie=true; is-read-header==>true; token-prefix=null; ==> Session + Cookie 模式和 Redis + JWT 模式共存,两者均能实现鉴权
1072-
# 5.is-read-cookie=true; is-read-header==>true; token-prefix=exist; ==> 仅有 Redis + JWT 模式起作用,作用等同于标准的 Redis + JWT 模式
10731073
# 鉴权模式一:Session + Cookie(Token 由 Cookie 自动传递),如果为 false ,那么前端 Cookie 不会自动填充 Token
1074-
is-read-cookie: false
1074+
is-read-cookie: true
10751075
# 鉴权模式二:Redis + JWT(Token 由 Header 手动传递),如果为 true ,正常的实现逻辑应该是将 Token 从登录接口返回给前端,前端存储之后每次发起请求都将 Token 放入 Header 中
10761076
is-read-header: true
10771077
# 在鉴权模式二下,Token 的前缀(这个需要手动添加并从 Header 中传入进来)
@@ -1424,7 +1424,7 @@ Canal 是 Alibaba 开发的基于 MySQL 数据库的增量日志解析工具,
14241424
- 带业务逻辑的增量数据处理;
14251425
- ......
14261426

1427-
##### 搭建Deployer&Adapter系统
1427+
##### 搭建Deployer&Adapter系统
14281428

14291429
Deployer (Canal-Deployer) 是该系统的主体,它的作用是将自己包装成 MySQL 的从库,进而监听 MySQL 的增量日志(binlog),同时能够将其解析并读取。
14301430

@@ -1509,6 +1509,7 @@ Deployer 只能监听一个 MySQL 的增量日志。
15091509
## 下一步开发计划
15101510

15111511
* 设计方便简单的操作 PDF 的工具类
1512+
* 设计日志模块
15121513
* 集成 Prometheus 和 Grafana 监控报警平台(选做)
15131514
* 集成 Apache SkyWalking 链路追踪(选做)
15141515
* ......

module/power-job-admin/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</parent>
1010
<groupId>top.sharehome</groupId>
1111
<artifactId>power-job-admin</artifactId>
12-
<version>v2.1.6-jdk8-11-pre</version>
12+
<version>v2.1.6-jdk8-11</version>
1313
<name>power-job-admin</name>
1414
<description>power-job-admin</description>
1515
<properties>

module/spring-boot-admin/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</parent>
1111
<groupId>top.sharehome</groupId>
1212
<artifactId>spring-boot-admin</artifactId>
13-
<version>v2.1.6-jdk8-11-pre</version>
13+
<version>v2.1.6-jdk8-11</version>
1414
<name>spring-boot-admin</name>
1515
<description>spring-boot-admin</description>
1616
<properties>

module/xxl-job-admin/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</parent>
1010
<groupId>top.sharehome</groupId>
1111
<artifactId>xxl-job-admin</artifactId>
12-
<version>v2.1.6-jdk8-11-pre</version>
12+
<version>v2.1.6-jdk8-11</version>
1313
<name>xxl-job-admin</name>
1414
<description>xxl-job-admin</description>
1515
<properties>

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</parent>
1313
<groupId>top.sharehome</groupId>
1414
<artifactId>spring-boot-init-template</artifactId>
15-
<version>v2.1.6-jdk8-11-pre</version>
15+
<version>v2.1.6-jdk8-11</version>
1616
<name>spring-boot-init-template</name>
1717
<description>spring-boot-init-template</description>
1818
<url>https://github.com/AntonyCheng/spring-boot-init-template</url>

src/main/resources/knife4j/README.md

+26-26
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
> **作者:[AntonyCheng](https://github.com/AntonyCheng)**
22
>
3-
> **版本号:v2.1.5**
3+
> **版本号:v2.1.6-jdk8&11**
44
>
55
> **开源协议:[Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0.html)**
66
>
@@ -10,8 +10,6 @@
1010

1111
**基于 Java Web 项目的 SpringBoot 框架初始化模板**,该模板整合了常用的框架,该模板适用于前后端分离项目启动开发,保证大家在此基础上能够快速开发自己的项目,同时也适合入门学习,本项目会由作者持续更新。
1212

13-
**基于 Java Web 项目的 SpringBoot 框架初始化模板**,该模板整合了常用的框架,该模板适用于前后端分离项目启动开发,保证大家在此基础上能够快速开发自己的项目,同时也适合入门学习,本项目会由作者持续更新。
14-
1513
* [SpringBoot初始化模板](#springboot初始化模板)
1614
* [模板特点](#模板特点)
1715
* [主流框架](#主流框架)
@@ -56,7 +54,7 @@
5654
* [配置SpringBootAdmin](#配置springbootadmin)
5755
* [配置Canal](#配置canal)
5856
* [Canal简介](#canal简介)
59-
* [搭建Deployer&Adapter系统](#搭建deployeradapter系统-)
57+
* [搭建Deployer&Adapter系统](#搭建deployeradapter系统)
6058
* [搭建Deployer&Client系统](#搭建deployerclient系统)
6159
* [兼容Java8](#兼容java8)
6260
* [申明&联系我](#申明联系我)
@@ -78,19 +76,19 @@
7876
- spring-boot-starter-freemaker == 模板引擎依赖
7977
- spring-boot-starter-test == Spring Boot Test 依赖
8078
- spring-boot-configuration-processor == 生成配置元数据信息,辅助开发工具
81-
- **UI**
79+
- **前端模板**
8280
- vue-admin-template 4.4.0 == 这是一个极简的 vue admin 管理后台,只包含了 Vue 2 & Element UI & axios & iconfont & permission control & lint
83-
8481
- **Netty**
85-
- netty-all 4.1.109.Final == Netty 框架
86-
- **MySQL**
82+
- netty-all 4.1.110.Final == Netty 框架
83+
- **数据驱动层**
8784
- mysql-connector-j 8.0.33 == Java 连接 MySQL 依赖
88-
- druid-spring-boot-starter 1.2.22 == Druid 连接池
89-
- mybatis-plus-boot-starter 3.5.6 == MySQL 操作框架
90-
- shardingsphere-jdbc-core 5.5.0 == 分布式数据库解决方案
85+
- mybatis-plus-boot-starter 3.5.6 == MyBatis-Plus 框架
86+
- mybatis-plus-annotation 3.5.6 == MyBatis-Plus 注解依赖
87+
- shardingsphere-jdbc 5.5.0 == 分布式数据库解决方案
88+
- druid-spring-boot-starter 1.2.23 == Druid 连接池
9189
- **工具类**
9290
- lombok 1.18.32 == POJO 简化工具
93-
- hutool-all 5.8.27 == Hutool 工具类
91+
- hutool-all 5.8.28 == Hutool 工具类
9492
- commons-lang3 3.14.0 == Apache Commons Lang 工具类
9593
- commons-io 2.16.1 == Apache Commons IO 工具类
9694
- commons-codec 1.17.0 == Apache Commons Codec 工具类
@@ -100,29 +98,30 @@
10098
- commons-compress 1.26.1 == Apache Commons Compress 工具类
10199
- okhttp 4.12.0 == OK Http 工具类
102100
- okio 3.9.0 == OK IO 工具类
103-
- fastjson2 2.0.49 == Fast JSON 工具类
101+
- fastjson2 2.0.51 == Fast JSON 工具类
102+
- fastjson2-extension-spring6 2.0.51 == FastJSON 工具拓展类
104103
- ip2region 2.7.0 == 离线 IP 地址定位库
105104
- **权限校验**
106-
- sa-token-spring-boot-starter 1.37.0 == SaToken 认证鉴权框架
107-
- sa-token-core 1.37.0 == SaToken 认证鉴权框架核心依赖
108-
- sa-token-jwt 1.37.0 == SaToken 认证鉴权框架 JWT 依赖
109-
- sa-token-redis-jackson 1.37.0 == SaToken 认证鉴权框架 Redis 依赖
105+
- sa-token-spring-boot-starter 1.38.0 == SaToken 认证鉴权框架
106+
- sa-token-core 1.38.0 == SaToken 认证鉴权框架核心依赖
107+
- sa-token-jwt 1.38.0 == SaToken 认证鉴权框架 JWT 依赖
108+
- sa-token-redis-jackson 1.38.0 == SaToken 认证鉴权框架 Redis 依赖
110109
- **缓存服务**
111110
- spring-boot-starter-data-redis == Spring Data Redis 依赖
112111
- spring-boot-starter-cache == Spring Cache 依赖
113-
- redisson 3.29.0 == Redis 的基础上实现的 Java 驻内存数据网格
112+
- redisson 3.31.0 == Redis 的基础上实现的 Java 驻内存数据网格
114113
- **本地缓存服务**
115114
- caffeine 3.1.8 == Caffeine 本地缓存依赖
116115
- **消息队列**
117116
- spring-boot-starter-amqp == 支持 AMQP (高级消息队列协议)消息代理
118117
- spring-rabbit-test == Spring 支持对 RabbitMQ 消息队列的单元测试
119118
- **搜索引擎**
120-
- easy-es-boot-starter 2.0.0-bata8 == 简化 Elasticsearch 搜索引擎,可以像 Mybatis-Plus 操作 MySQL 一样操作 Elasticsearch 的开源框架
119+
- easy-es-boot-starter 2.0.0 == 简化 Elasticsearch 搜索引擎,可以像 Mybatis-Plus 操作 MySQL 一样操作 Elasticsearch 的开源框架
121120
- elasticsearch 7.14.0 == Elasticsearch 依赖
122121
- elasticsearch-rest-high-level-client 7.14.0 == ES 高级别客户端依赖
123122
- logstash-logback-encoder 7.3 == Logstash 依赖
124123
- **对象存储(OSS)**
125-
- cos_api 5.6.211 == 腾讯云 COS
124+
- cos_api 5.6.213 == 腾讯云 COS
126125
- aliyun-sdk-oss 3.17.4 == 阿里云 OSS
127126
- minio 8.5.10 == Minio 对象存储
128127
- **文件操作**
@@ -133,7 +132,7 @@
133132
- **接口文档 & API调试**
134133
- knife4j-openapi3-spring-boot-starter 4.5.0 == Knife4j 依赖
135134
- **外接平台(建议生产环境上使用 Docker 容器化技术自行部署一套平台,不要通过模板中的模块代码直接进行编译部署,主要原因是为了适配模板,外接平台中的某些代码被作者修改过)**
136-
- xxl-job-core 2.4.0 == 分布式定时任务管理平台
135+
- xxl-job-core 2.4.1 == 分布式定时任务管理平台
137136
- powerjob-worker-spring-boot-starter 4.3.9 == 更强劲的分布式定时任务管理平台(个人认为,针对于中小型项目而言,PowerJob 并不适用,可以对比一下 XxlJob ,就能发现 PowerJob 很多功能用不上,当然这得让开发者自己考虑,所以模板依然保留了 XxlJob 的集成模块)
138137
- spring-boot-admin-client 2.7.9 == SpringBoot 服务监控平台
139138
- canal.client 1.1.7 == Canal-Deployer & Canal-Adapter 数据同步系统
@@ -1057,15 +1056,15 @@ sa-token:
10571056
sa-token:
10581057
......
10591058
# todo 鉴权模式说明:
1060-
# 1.is-read-cookie=true; is-read-header==>false; token-prefix=null; ==> 标准的 Session + Cookie 模式(推荐,模板默认模式
1059+
# 1.is-read-cookie=true; is-read-header==>false; token-prefix=null; ==> 标准的 Session + Cookie 模式(推荐)
10611060
# 2.is-read-cookie=false; is-read-header==>true; token-prefix=exist;
10621061
# is-read-cookie=false; is-read-header==>true; token-prefix=null; ==> 标准的 Redis + JWT 模式(推荐)
1063-
# 3.is-read-cookie=false; is-read-header==>false; token-prefix=null;
1062+
# 3.is-read-cookie=true; is-read-header==>true; token-prefix=null; ==> Session + Cookie 模式和 Redis + JWT 模式共存,两者均能实现鉴权(推荐,模板默认模式)
1063+
# 4.is-read-cookie=true; is-read-header==>true; token-prefix=exist; ==> 仅有 Redis + JWT 模式起作用,作用等同于标准的 Redis + JWT 模式
1064+
# 5.is-read-cookie=false; is-read-header==>false; token-prefix=null;
10641065
# is-read-cookie=false; is-read-header==>false; token-prefix=exist; ==> 无法通过鉴权模式
1065-
# 4.is-read-cookie=true; is-read-header==>true; token-prefix=null; ==> Session + Cookie 模式和 Redis + JWT 模式共存,两者均能实现鉴权
1066-
# 5.is-read-cookie=true; is-read-header==>true; token-prefix=exist; ==> 仅有 Redis + JWT 模式起作用,作用等同于标准的 Redis + JWT 模式
10671066
# 鉴权模式一:Session + Cookie(Token 由 Cookie 自动传递),如果为 false ,那么前端 Cookie 不会自动填充 Token
1068-
is-read-cookie: false
1067+
is-read-cookie: true
10691068
# 鉴权模式二:Redis + JWT(Token 由 Header 手动传递),如果为 true ,正常的实现逻辑应该是将 Token 从登录接口返回给前端,前端存储之后每次发起请求都将 Token 放入 Header 中
10701069
is-read-header: true
10711070
# 在鉴权模式二下,Token 的前缀(这个需要手动添加并从 Header 中传入进来)
@@ -1463,6 +1462,7 @@ Deployer 只能监听一个 MySQL 的增量日志。
14631462
## 下一步开发计划
14641463

14651464
* 设计方便简单的操作 PDF 的工具类
1465+
* 设计日志模块
14661466
* 集成 Prometheus 和 Grafana 监控报警平台(选做)
14671467
* 集成 Apache SkyWalking 链路追踪(选做)
14681468
* ......

0 commit comments

Comments
 (0)