Skip to content

Commit 20fabe7

Browse files
committed
SpringBoot初始化模板v2.1.8 发布版本。
1 parent c8e1c2f commit 20fabe7

File tree

10 files changed

+41
-32
lines changed

10 files changed

+41
-32
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66

77
> **作者:[AntonyCheng](https://github.com/AntonyCheng)**
88
>
9-
> **版本号:v2.1.8-jdk17-pre**
9+
> **版本号:v2.1.8-jdk17**
1010
>
1111
> **开源协议:[Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0.html)**
1212
>
1313
> **注意事项:该README跟随版本号的更新而更新,所有Git分支其实都是Pre预览分支,其中最新的内容并不能及时展现在该README中,所以想要使用稳定且具有对应说明的版本,推荐从Releases中下载。但是想要时刻跟进模板开发进度,也可以直接从各个Git分支拉取,查看每次提交的对应说明!**
1414
1515
# SpringBoot初始化模板
1616

17-
**基于 Java Web 项目的 SpringBoot 框架初始化模板**,该模板整合了常用的框架,该模板适用于前后端分离项目启动开发,保证大家在此基础上能够快速开发自己的项目,同时也适合入门学习,本项目会由作者持续更新。
17+
**基于 Java Web 项目的 SpringBoot 框架初始化模板**,该模板整合了常用的框架,广泛支持JDK11和JDK17,部分版本兼容JDK8,该模板适用于前后端分离项目启动开发,保证大家在此基础上能够快速开发自己的项目,同时也适合入门学习,本项目会由作者持续更新。
1818

1919
* [SpringBoot初始化模板](#springboot初始化模板)
2020
* [模板特点](#模板特点)
@@ -65,6 +65,7 @@
6565
* [搭建Deployer&Client系统](#搭建deployerclient系统)
6666
* [前端预览](#前端预览)
6767
* [申明&联系我](#申明联系我)
68+
* [项目历史](#项目历史)
6869
* [下一步开发计划](#下一步开发计划)
6970

7071
## 模板特点

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.8-jdk17-pre</version>
12+
<version>v2.1.8-jdk17</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
@@ -9,7 +9,7 @@
99
</parent>
1010
<groupId>top.sharehome</groupId>
1111
<artifactId>spring-boot-admin</artifactId>
12-
<version>v2.1.8-jdk17-pre</version>
12+
<version>v2.1.8-jdk17</version>
1313
<name>spring-boot-admin</name>
1414
<description>spring-boot-admin</description>
1515
<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.8-jdk17-pre</version>
12+
<version>v2.1.8-jdk17</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.8-jdk17-pre</version>
15+
<version>v2.1.8-jdk17</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/java/top/sharehome/springbootinittemplate/config/log/enums/Operator.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
package top.sharehome.springbootinittemplate.config.log.enums;
22

3-
import com.google.common.base.Objects;
43
import lombok.Getter;
54

65
import java.util.Arrays;
76
import java.util.List;
7+
import java.util.Objects;
88

99
/**
1010
* 日志操作类型枚举类
@@ -38,7 +38,7 @@ public enum Operator {
3838
}
3939

4040
public static String getLabelByValue(Integer operatorValue) {
41-
List<Operator> list = Arrays.stream(Operator.values()).filter(operatorEnum -> Objects.equal(operatorEnum.getOperatorValue(), operatorValue)).toList();
41+
List<Operator> list = Arrays.stream(Operator.values()).filter(operatorEnum -> Objects.equals(operatorEnum.getOperatorValue(), operatorValue)).toList();
4242
if (list.isEmpty()) {
4343
return "UNKNOWN";
4444
}

src/main/java/top/sharehome/springbootinittemplate/exception/customize/CustomizeDocumentException.java

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
package top.sharehome.springbootinittemplate.exception.customize;
22

3-
import com.google.common.base.Objects;
43
import lombok.Data;
54
import lombok.EqualsAndHashCode;
65
import lombok.extern.slf4j.Slf4j;
76
import top.sharehome.springbootinittemplate.common.base.ReturnCode;
87
import top.sharehome.springbootinittemplate.exception.CustomizeException;
98

9+
import java.util.Objects;
10+
1011
/**
1112
* 自定义文档异常
1213
*
@@ -28,11 +29,11 @@ public CustomizeDocumentException(ReturnCode returnCode) {
2829
}
2930

3031
public CustomizeDocumentException(ReturnCode returnCode, String msg) {
31-
if (Objects.equal(ReturnCode.EXCEL_FILE_ERROR.getCode(), returnCode.getCode())) {
32+
if (Objects.equals(ReturnCode.EXCEL_FILE_ERROR.getCode(), returnCode.getCode())) {
3233
log.error("{},{}", ReturnCode.EXCEL_FILE_ERROR.getMsg(), msg);
33-
} else if (Objects.equal(ReturnCode.WORD_FILE_ERROR.getCode(), returnCode.getCode())) {
34+
} else if (Objects.equals(ReturnCode.WORD_FILE_ERROR.getCode(), returnCode.getCode())) {
3435
log.error("{},{}", ReturnCode.WORD_FILE_ERROR.getMsg(), msg);
35-
} else if (Objects.equal(ReturnCode.PDF_FILE_ERROR.getCode(), returnCode.getCode())) {
36+
} else if (Objects.equals(ReturnCode.PDF_FILE_ERROR.getCode(), returnCode.getCode())) {
3637
log.error("{},{}", ReturnCode.PDF_FILE_ERROR.getMsg(), msg);
3738
}
3839
this.returnCode = returnCode;

src/main/java/top/sharehome/springbootinittemplate/utils/document/pdf/enums/ImageExtension.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package top.sharehome.springbootinittemplate.utils.document.pdf.enums;
22

3-
import com.google.common.base.Objects;
43
import lombok.AllArgsConstructor;
54
import lombok.Getter;
65

76
import java.util.Arrays;
87
import java.util.List;
8+
import java.util.Objects;
99

1010
/**
1111
* PDF图像文件扩展名
@@ -34,7 +34,7 @@ public enum ImageExtension {
3434
private final String name;
3535

3636
public static ImageExtension getEnumByName(String name) {
37-
List<ImageExtension> list = Arrays.stream(ImageExtension.values()).filter(imageExtension -> Objects.equal(imageExtension.getName(), name)).toList();
37+
List<ImageExtension> list = Arrays.stream(ImageExtension.values()).filter(imageExtension -> Objects.equals(imageExtension.getName(), name)).toList();
3838
if (list.isEmpty()) {
3939
return null;
4040
}

src/main/java/top/sharehome/springbootinittemplate/utils/document/word/enums/ImageExtension.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package top.sharehome.springbootinittemplate.utils.document.word.enums;
22

3-
import com.google.common.base.Objects;
43
import lombok.AllArgsConstructor;
54
import lombok.Getter;
65

76
import java.util.Arrays;
87
import java.util.List;
8+
import java.util.Objects;
99

1010
/**
1111
* Word图像文件扩展名
@@ -31,7 +31,7 @@ public enum ImageExtension {
3131
private final int ooxmlId;
3232

3333
public static ImageExtension getEnumByName(String name) {
34-
List<ImageExtension> list = Arrays.stream(ImageExtension.values()).filter(imageExtension -> Objects.equal(imageExtension.getName(), name)).toList();
34+
List<ImageExtension> list = Arrays.stream(ImageExtension.values()).filter(imageExtension -> Objects.equals(imageExtension.getName(), name)).toList();
3535
if (list.isEmpty()) {
3636
return null;
3737
}

src/main/resources/knife4j/README.md

+23-16
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
> **作者:[AntonyCheng](https://github.com/AntonyCheng)**
22
>
3-
> **版本号:v2.1.8-jdk17-pre**
3+
> **版本号:v2.1.8-jdk17**
44
>
55
> **开源协议:[Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0.html)**
66
>
@@ -58,6 +58,7 @@
5858
* [搭建Deployer&Adapter系统](#搭建deployeradapter系统)
5959
* [搭建Deployer&Client系统](#搭建deployerclient系统)
6060
* [申明&联系我](#申明联系我)
61+
* [项目历史](#项目历史)
6162
* [下一步开发计划](#下一步开发计划)
6263

6364
## 模板特点
@@ -82,7 +83,7 @@
8283
- spring-ai-zhipuai-spring-boot-starter == Spring AI 智谱AI模型依赖
8384
- spring-ai-ollama-spring-boot-starter == Spring AI Ollama框架AI模型依赖
8485
- **Netty**
85-
- netty-all 4.1.111.Final == Netty 框架
86+
- netty-all 4.1.112.Final == Netty 框架
8687
- **数据驱动层**
8788
- mysql-connector-j 8.0.33 == Java 连接 MySQL 依赖
8889
- mybatis-spring 3.0.3 == MyBatis Spring 依赖
@@ -92,18 +93,18 @@
9293
- druid-spring-boot-3-starter 1.2.23 == Druid 连接池
9394
- **工具类**
9495
- lombok 1.18.34 == POJO 简化工具
95-
- hutool-all 5.8.28 == Hutool 工具类
96-
- commons-lang3 3.14.0 == Apache Commons Lang 工具类
96+
- hutool-all 5.8.29 == Hutool 工具类
97+
- commons-lang3 3.15.0 == Apache Commons Lang 工具类
9798
- commons-io 2.16.1 == Apache Commons IO 工具类
98-
- commons-codec 1.17.0 == Apache Commons Codec 工具类
99+
- commons-codec 1.17.1 == Apache Commons Codec 工具类
99100
- commons-pool2 2.12.0 == Apache Commons Pool 工具类
100101
- commons-collections4 4.5.0-M2 == Apache Commons Collections 工具类
101102
- commons-math3 3.6.1 == Apache Commons Math 工具类
102103
- commons-compress 1.26.2 == Apache Commons Compress 工具类
103104
- okhttp 4.12.0 == OK Http 工具类
104105
- okio 3.9.0 == OK IO 工具类
105-
- fastjson2 2.0.51 == FastJSON 工具类
106-
- fastjson2-extension-spring6 2.0.51 == FastJSON 工具拓展类
106+
- fastjson2 2.0.52 == FastJSON 工具类
107+
- fastjson2-extension-spring6 2.0.52 == FastJSON 工具拓展类
107108
- ip2region 2.7.0 == 离线 IP 地址定位库
108109
- **权限校验**
109110
- sa-token-spring-boot3-starter 1.38.0 == SaToken 认证鉴权框架
@@ -113,7 +114,7 @@
113114
- **缓存服务**
114115
- spring-boot-starter-data-redis == Spring Data Redis 依赖
115116
- spring-boot-starter-cache == Spring Cache 依赖
116-
- redisson 3.32.0 == Redis 的基础上实现的 Java 驻内存数据网格
117+
- redisson 3.33.0 == Redis 的基础上实现的 Java 驻内存数据网格
117118
- **本地缓存服务**
118119
- caffeine 3.1.8 == Caffeine 本地缓存依赖
119120
- **消息队列**
@@ -125,14 +126,16 @@
125126
- elasticsearch-rest-high-level-client 7.14.0 == ES 高级别客户端依赖
126127
- logstash-logback-encoder 7.3 == Logstash 依赖
127128
- **对象存储(OSS)**
128-
- cos_api 5.6.219 == 腾讯云 COS
129-
- aliyun-sdk-oss 3.18.0 == 阿里云 OSS
129+
- cos_api 5.6.221 == 腾讯云 COS
130+
- aliyun-sdk-oss 3.18.1 == 阿里云 OSS
130131
- minio 8.5.11 == Minio 对象存储
131132
- **文件操作**
132-
- poi 5.2.5 == 操作 Word
133+
- poi 5.3.0 == 操作 Word
133134
- poi-tl 1.12.2 == 操作 Word 模板
134135
- easyexcel 4.0.1 == 操作 Excel
135-
- itext-core 8.0.3 == 操作 PDF
136+
- x-easypdf 3.1.0 == 操作 PDF
137+
- thymeleaf 3.1.2.RELEASE == 操作 PDF Thymeleaf 模板
138+
- jte 2.3.2 == 操作 PDF JTE 数据源模板
136139
- **接口文档 & API调试**
137140
- knife4j-openapi3-jakarta-spring-boot-starter 4.5.0 == Knife4j 依赖
138141
- **外接平台(建议生产环境上使用 Docker 容器化技术自行部署一套平台,不要通过模板中的模块代码直接进行编译部署,主要原因是为了适配模板,外接平台中的某些代码被作者修改过)**
@@ -165,7 +168,7 @@
165168
- JSON 长整型精度处理
166169
- 自动字段填充器
167170
- 基于 Netty 的 WebSocket 全双工通信设计示例
168-
- 对象存储、消息队列、缓存、分布式锁、限流、国际化、网络、Excel、Word 等工具类
171+
- 对象存储、消息队列、缓存、分布式锁、限流、国际化、网络、Excel、Word、PDF 等工具类
169172

170173
## 业务功能
171174

@@ -182,6 +185,7 @@
182185
- 验证码逻辑代码示例
183186
- 操作 Elasticsearch 代码示例
184187
- 操作 MongoDB 代码示例
188+
- 操作 Excel、Word 以及 PDF 文件代码示例
185189

186190
### 单元测试
187191

@@ -1500,10 +1504,13 @@ Deployer 只能监听一个 MySQL 的增量日志。
15001504

15011505
**作者在线时间一般分布在工作日的晚上,其他时间若是查看到消息,在有电脑的情况下也会进行回复或说明。**
15021506

1507+
## 项目历史
1508+
1509+
![Star History Chart](https://api.star-history.com/svg?repos=AntonyCheng/spring-boot-init-template&type=Date)
1510+
15031511
## 下一步开发计划
15041512

1505-
* 设计方便简单的操作 PDF 的工具类
15061513
* 设计幂等模块
1507-
* 集成 Prometheus 和 Grafana 监控报警平台(选做)
1508-
* 集成 Apache SkyWalking 链路追踪(选做)
1514+
* 设计相关工具类前端功能示例界面
1515+
* 扩展新的前端模板
15091516
* ......

0 commit comments

Comments
 (0)