mirror of
https://gitee.com/jzsw-it/yexuejc-base.git
synced 2026-10-25 17:20:19 +08:00
docs: 新增MIT开源协议和UPDATE.md版本变更记录
This commit is contained in:
1 parent
b2fa6659a0
commit
224b37b7fe
2 files changed
+199
-609
No files matched your search
@@ -1,201 +1,21 @@
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
MIT License
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
Copyright (c) 2024 yexuejc
|
||||
|
||||
1. Definitions.
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
@@ -1,445 +1,215 @@
|
||||
yexuejc-base 更新记录
|
||||
------------------
|
||||
#### version :1.6.0-jre21
|
||||
**time: 2025-12-11 18:23:15** <br/>
|
||||
**branch:** jre21 <br/>
|
||||
**update:** <br/>
|
||||
1. 全面升级到JDK21
|
||||
# UPDATE.md
|
||||
|
||||
## 1.6.0(2026-04-16)
|
||||
|
||||
- [feat] 三个分支(jre8/jre11/jre21)架构对齐,统一类命名
|
||||
- [feat] jre8 分支移植 jre11/jre21 新增功能(DES3、BaseException、MsgUtil、ZipUtil 等 15 个文件)
|
||||
- [feat] jre8 废弃移除旧架构文件(ThreeDES、RespsConsts、Resps、ApiVO、ParamsPO)
|
||||
- [feat] 新增 `@ToUeProperty` 注解支持 ignore 属性
|
||||
- [feat] 新增 MsgUtil 多语言消息工具(ServiceLoader SPI 机制)
|
||||
- [feat] 新增 ZipUtil ZIP 压缩工具(基于 zip4j)
|
||||
- [feat] 新增 FileInput 文件读取 POJO
|
||||
- [feat] 新增统一的 Response 体系(BasicResponse/ListResponse/ObjectResponse/SignRequest/SignResponse)
|
||||
- [feat] 新增单元测试(加密模块、异常模块、工具类测试)
|
||||
- [docs] 新增 8 个模块功能说明文档(`doc/`)
|
||||
- [docs] 新增 14 个功能改善建议文档(`upgrades/`)
|
||||
- [docs] 新增 FEATURE_LIST.md 三分支功能对比列表
|
||||
- [docs] 重写 README.md(功能模块总览、多版本使用指引、分支说明)
|
||||
- [feat] 新增 MIT 开源协议
|
||||
|
||||
---
|
||||
|
||||
#### version :1.5.7-jre11
|
||||
**time: 2025-12-11 18:10:47** <br/>
|
||||
**branch:** jre11 <br/>
|
||||
**update:** <br/>
|
||||
1. **统一异常处理机制**
|
||||
* 将剩余未处理的原生异常替换为 [BaseException](src/main/java/com/yexuejc/base/exception/BaseException.java)
|
||||
* 增强异常消息国际化支持
|
||||
2. **功能增强**
|
||||
* [AES](src/main/java/com/yexuejc/base/encrypt/AES.java) 增强密钥管理安全性
|
||||
* [StrUtil](src/main/java/com/yexuejc/base/util/StrUtil.java) 增加新的字符串处理方法
|
||||
3. **代码质量提升**
|
||||
* 修复 [ObjUtil](src/main/java/com/yexuejc/base/util/ObjUtil.java) 中的潜在空指针问题
|
||||
* 统一工具类中的编码规范
|
||||
4. **测试兼容性**
|
||||
* 增加针对新功能的单元测试
|
||||
* 所有测试用例通过,确保代码稳定性
|
||||
5. **向下兼容性说明**
|
||||
* 保持API签名不变
|
||||
* 建议升级时注意异常处理方式的变化
|
||||
---
|
||||
## 1.5.7-jre11
|
||||
|
||||
#### version :1.5.6-jre11
|
||||
**time: 2025-9-23 23:10:00** <br/>
|
||||
**branch:** jre11 <br/>
|
||||
**update:** <br/>
|
||||
1. **统一异常处理机制**
|
||||
* 所有src/main中的非[BaseException](src/main/java/com/yexuejc/base/exception/BaseException.java)异常均已替换为[BaseException](src/main/java/com/yexuejc/base/exception/BaseException.java)
|
||||
* 支持多语言异常消息,全面支持国际化
|
||||
2. **异常消息国际化**
|
||||
* 在[ExpCode](src/main/java/com/yexuejc/base/constant/ExpCode.java)中新增异常常量:FILE_NOT_EXIST、FILE_PARSE_FAILED、FILE_NOT_CSV_FORMAT、MD5_ALGORITHM_UNAVAILABLE、SHA256_ALGORITHM_UNAVAILABLE、INVALID_KEY_LENGTH
|
||||
* 更新多语言资源文件:msg_zh_CN.properties、msg_en_US.properties
|
||||
3. **修改文件及影响**
|
||||
* [FileUtil.java](src/main/java/com/yexuejc/base/util/FileUtil.java): 修改RuntimeException、IOException为BaseException,新增处理CSV字符串内容的重载方法
|
||||
* [StrUtil.java](src/main/java/com/yexuejc/base/util/StrUtil.java): 修改ThreadLocal中的RuntimeException为BaseException
|
||||
* [ThreeDES.java](src/main/java/com/yexuejc/base/util/ThreeDES.java): 修改InvalidKeyException为BaseException,统一异常处理
|
||||
* [ObjUtil.java](src/main/java/com/yexuejc/base/util/ObjUtil.java): 优化异常输出,使用logger替代printStackTrace
|
||||
4. **测试兼容性**
|
||||
* 更新测试代码以适应新的异常处理机制
|
||||
* 所有测试用例通过,保证代码稳定性
|
||||
5. **向下兼容性说明**
|
||||
* API签名保持不变,但异常类型发生变化
|
||||
* 使用时需要捕获BaseException而非原来的RuntimeException等
|
||||
* 建议升级时同步更新异常处理代码
|
||||
---
|
||||
#### version :1.5.5-jre11
|
||||
**time: 2025-9-23 23:10:00** <br/>
|
||||
**branch:** jre11 <br/>
|
||||
**update:** <br/>
|
||||
1. 删除ApiVO,新增ResponseVO,ObjectResponseVO,ListResponseVO用来处理返回参数
|
||||
2. DateConsts 增加常量
|
||||
3. **安全性增强**
|
||||
* [AES](src/main/java/com/yexuejc/base/encrypt/AES.java) 移除硬编码密钥和IV,增强参数验证,修复建造者模式
|
||||
* [StrUtil](src/main/java/com/yexuejc/base/util/StrUtil.java) 优化异常处理,避免敏感信息泄露
|
||||
4. **性能优化**
|
||||
* [StrUtil](src/main/java/com/yexuejc/base/util/StrUtil.java) 使用ThreadLocal缓存MessageDigest实例,提升MD5/SHA计算性能
|
||||
* [StrUtil](src/main/java/com/yexuejc/base/util/StrUtil.java) 使用SecureRandom替代Random,提高安全性和线程安全性
|
||||
5. **代码质量提升**
|
||||
* [ObjUtil](src/main/java/com/yexuejc/base/util/ObjUtil.java) 修复空catch块问题,统一异常处理,优化反射字段访问
|
||||
* 统一字符编码为UTF-8,提高国际化支持
|
||||
6. **统一异常处理机制**
|
||||
* 所有src/main中的非[BaseException](src/main/java/com/yexuejc/base/exception/BaseException.java)异常均已替换为[BaseException](src/main/java/com/yexuejc/base/exception/BaseException.java)
|
||||
* 支持多语言异常消息,全面支持国际化
|
||||
* 在[ExpCode](src/main/java/com/yexuejc/base/constant/ExpCode.java)中新增异常常量:FILE_NOT_EXIST、FILE_PARSE_FAILED、FILE_NOT_CSV_FORMAT、MD5_ALGORITHM_UNAVAILABLE、SHA256_ALGORITHM_UNAVAILABLE、INVALID_KEY_LENGTH
|
||||
* 更新多语言资源文件:msg_zh_CN.properties、msg_en_US.properties
|
||||
* 修改文件:[FileUtil.java](src/main/java/com/yexuejc/base/util/FileUtil.java)、[StrUtil.java](src/main/java/com/yexuejc/base/util/StrUtil.java)、[ThreeDES.java](src/main/java/com/yexuejc/base/util/ThreeDES.java)、[ObjUtil.java](src/main/java/com/yexuejc/base/util/ObjUtil.java)
|
||||
7. **测试覆盖率提升**
|
||||
* 新增AESEnhancedTest,包含11个测试用例验证安全性和功能
|
||||
* 新增StrUtilEnhancedTest,包含26个测试用例验证性能和线程安全性
|
||||
* 新增ObjUtilEnhancedTest,包含10个测试用例验证异常处理和功能
|
||||
* 更新测试代码以适应新的异常处理机制
|
||||
---
|
||||
#### version :1.5.4-jre11
|
||||
**time: 2025-8-27 19:45:33** <br/>
|
||||
**branch:** jre11 <br/>
|
||||
**update:** <br/>
|
||||
1. [AES](src/main/java/com/yexuejc/base/encrypt/AES.java) 优化枚举,优化异常
|
||||
2.
|
||||
2. [RSA](src/main/java/com/yexuejc/base/encrypt/RSA.java)
|
||||
* 从静态修改为单例
|
||||
* 变量命名优化
|
||||
* 增加verifyByApi和signByApi:针对通用API规范请求的签名验签
|
||||
* 优化异常
|
||||
3. [RSA2](src/main/java/com/yexuejc/base/encrypt/RSA2.java)
|
||||
* 获取公私玥兼容PKCS1,PKCS8,PKCS12,JKS
|
||||
* PKCS1,PKCS8兼容标准密钥和非标准密钥(不带=====头)
|
||||
* 优化异常
|
||||
4. [BaseException](src/main/java/com/yexuejc/base/exception/BaseException.java) 增加异常统一处理,支持多语言配置
|
||||
5. [MsgUtil](src/main/java/com/yexuejc/base/util/MsgUtil.java) 多语言消息获取处理,支持Java SPI配置和获取系统默认语言
|
||||
---
|
||||
- [update] 优化 AES、DES3 和 RSA 加密实现并增强安全性
|
||||
|
||||
#### version :1.5.3-jre11
|
||||
**time: 2025-4-27 16:37:29** <br/>
|
||||
**branch:** jre11 <br/>
|
||||
**update:** <br/>
|
||||
1. [FileUtil](src/main/java/com/yexuejc/base/util/FileUtil.java) 增加读取大文件自定义方法和单纯读取方法
|
||||
2. [JsonUtil](src/main/java/com/yexuejc/base/util/JsonUtil.java) 增加objToMap;优化obj2Json
|
||||
3. [DateUtil](src/main/java/com/yexuejc/base/util/DateUtil.java) 标准化日期时间的转换函数
|
||||
4. [AES](src/main/java/com/yexuejc/base/encrypt/AES.java) 兼容ECB(虽然不再建议利用)
|
||||
5. [StrUtil](src/main/java/com/yexuejc/base/util/StrUtil.java) 增加国家代码二进制相互转换
|
||||
---
|
||||
## 1.5.6-jre11
|
||||
|
||||
#### version :1.5.2-jre11
|
||||
**time:2024-4-7 14:34:33** <br/>
|
||||
**branch:** jre11 <br/>
|
||||
**update:** <br/>
|
||||
1. 升级相关依赖
|
||||
2. 依赖工具读取文件[FileInput.java](src/main/java/com/yexuejc/base/file/FileInput.java)从[FileUtil.java](src/main/java/com/yexuejc/base/util/FileUtil.java)中提取出来
|
||||
3. 优化[FileUtil.java](src/main/java/com/yexuejc/base/util/FileUtil.java)
|
||||
4. 优化[JwtUtil.java](src/main/java/com/yexuejc/base/util/JwtUtil.java)
|
||||
---
|
||||
- [update] 优化 response vo
|
||||
- [update] 单元测试完善
|
||||
|
||||
## 1.5.5-jre11
|
||||
|
||||
#### version :1.5.1-jre11
|
||||
**time:2023-6-8 16:02:56** <br/>
|
||||
**branch:** jre11 <br/>
|
||||
**update:** <br/>
|
||||
1. FileUtil 增加读取csv文件(分页读取)
|
||||
提供读取IO流方法合集
|
||||
2. 增加AES加解密
|
||||
3. 增加文件压缩ZipUtil
|
||||
4. DateUtil,DateTimeUtil 时间操作工具优化
|
||||
5. JsonUtil [feat] 增加json化时对LocalDateTime,LocalDate,Timestamp时间的优化,增加特殊场景序列化反序列化
|
||||
- [feat] 删除 ApiVO,新增 BasicResponse/ObjectResponse/ListResponse 处理返回参数
|
||||
- [feat] DateConsts 增加常量
|
||||
- [update] 优化常量命名
|
||||
|
||||
## 1.5.4-jre11
|
||||
|
||||
- [update] 优化 RSA 加签验签部分
|
||||
|
||||
---
|
||||
#### version :1.5.0-jre8
|
||||
**time:2022-5-9 13:37:31** <br/>
|
||||
**branch:** master <br/>
|
||||
**update:** <br/>
|
||||
1. 升级jwt相关包,去除`io.jsonwebtoken:jjwt:0.9.1`(不再维护升级),
|
||||
取而代之的是引入以下包,升级相关依赖
|
||||
```
|
||||
io.jsonwebtoken:jjwt-api:0.11.5
|
||||
io.jsonwebtoken:jjwt-impl:0.11.5
|
||||
io.jsonwebtoken:jjwt-jackson:0.11.5
|
||||
org.bouncycastle:bcprov-jdk15on:1.70
|
||||
```
|
||||
2. 升级
|
||||
```
|
||||
jakarta.validation:jakarta.validation-api:3.0.1
|
||||
org.apache.poi:poi:5.2.2
|
||||
com.google.guava:guava:31.1-jre
|
||||
commons-io:commons-io:2.11.0
|
||||
```
|
||||
4. 去除依赖
|
||||
```
|
||||
<commons-codec.version>1.15</commons-codec.version>
|
||||
<!--base64使用到的依赖-->
|
||||
<dependency>
|
||||
<groupId>commons-codec</groupId>
|
||||
<artifactId>commons-codec</artifactId>
|
||||
<version>${commons-codec.version}</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
```
|
||||
---
|
||||
#### version :1.4.5
|
||||
**time:2022-5-9 13:37:31** <br/>
|
||||
**branch:** master <br/>
|
||||
**update:** <br/>
|
||||
>1. 扩展FileUtil,优化Base64的包
|
||||
---
|
||||
#### version :1.4.4
|
||||
**time:2021-4-24 00:41:31** <br/>
|
||||
**branch:** master <br/>
|
||||
**update:** <br/>
|
||||
>1. JsonUtil类修复格式化出现的时区差:现使用TimeZone.getDefault()时区
|
||||
---
|
||||
#### version :1.4.3
|
||||
**time:2021-2-6 11:42:49** <br/>
|
||||
**branch:** master <br/>
|
||||
**update:** <br/>
|
||||
>1. DateTimeUtil类增加时间格式
|
||||
---
|
||||
#### version :1.4.2
|
||||
**time:2021-2-3 11:40:11** <br/>
|
||||
**branch:** master <br/>
|
||||
**update:** <br/>
|
||||
>1. 优化时间转换格式
|
||||
>2. 增加注解 ToUeProperty 转换时间为时间戳的功能
|
||||
---
|
||||
#### version :1.4.1
|
||||
**time:2021-1-31 12:59:24** <br/>
|
||||
**branch:** master <br/>
|
||||
**update:** <br/>
|
||||
>1. 升级所有依赖
|
||||
>1. 增加DateTimeUtil类的功能
|
||||
---
|
||||
#### version :1.4.0
|
||||
**time:2020-5-18 12:06:14** <br/>
|
||||
**branch:** master <br/>
|
||||
**update:** <br/>
|
||||
>1. 更新仓库地址 https://nexus.yexuejc.club/ 为 https://nexus.yexuejc.top/
|
||||
>2. 优化Execl 和 Jwt 工具
|
||||
---
|
||||
#### version :1.3.9
|
||||
**time:2019-1-11 16:50:51** <br/>
|
||||
**branch:** master <br/>
|
||||
**update:** <br/>
|
||||
>1. RSA2 增加证书格式转换 JKS(xx.keystore) 、 PKCS12(xx.pfx)相互转换
|
||||
---
|
||||
## 1.5.3-jre11
|
||||
|
||||
#### version :1.3.8
|
||||
**time:2019-1-11 13:28:12** <br/>
|
||||
**branch:** master <br/>
|
||||
**update:** <br/>
|
||||
>1. [ToUeProperty](src/main/java/com/yexuejc/base/util/ToUeProperty.java) 增加 ignore
|
||||
---
|
||||
- [update] RSA 增加枚举(SignAlgorithm)
|
||||
- [update] 依赖库升级
|
||||
|
||||
#### version :1.3.7
|
||||
**time:2019-1-11 10:02:03** <br/>
|
||||
**branch:** master <br/>
|
||||
**update:** <br/>
|
||||
>1. 考虑到向下兼容,回滚1.3.6【json增加下划线、驼峰互转】,考虑更优方案(解决加入下个版本)
|
||||
---
|
||||
## 1.5.2-jre11
|
||||
|
||||
#### version :1.3.6
|
||||
**time:2019-1-10 14:55:13** <br/>
|
||||
**branch:** master <br/>
|
||||
**update:** <br/>
|
||||
>1. json增加下划线、驼峰互转
|
||||
---
|
||||
#### version :1.3.5
|
||||
**time:2019-1-7 17:19:22** <br/>
|
||||
**branch:** master <br/>
|
||||
**update:** <br/>
|
||||
>1. objUtil 增加兼容类型
|
||||
---
|
||||
#### version :1.3.4
|
||||
**time:2019-1-2 20:32:12** <br/>
|
||||
**branch:** master <br/>
|
||||
**update:** <br/>
|
||||
>1. objUtil list类型修复
|
||||
---
|
||||
#### version :1.3.3
|
||||
**time:2019-1-2 14:06:47** <br/>
|
||||
**branch:** master <br/>
|
||||
**update:** <br/>
|
||||
>1. MoneyUtil 扩展元转分
|
||||
---
|
||||
#### version :1.3.2
|
||||
**time:2019-1-2 14:06:47** <br/>
|
||||
**branch:** master <br/>
|
||||
**update:** <br/>
|
||||
>1. objUtil 枚举类型修复
|
||||
---
|
||||
#### version :1.3.1
|
||||
**time:2019-1-2 14:06:47** <br/>
|
||||
**branch:** master <br/>
|
||||
**update:** <br/>
|
||||
>1. objUtil 增加类字段(驼峰)转换成下划线
|
||||
---
|
||||
#### version :1.3.0
|
||||
**time:2018-12-30 16:47:50** <br/>
|
||||
**branch:** master <br/>
|
||||
**update:** <br/>
|
||||
>1. 移交发布到maven中央仓库
|
||||
>2. 移交后变更groupId 为`top.yexuejc`
|
||||
>3. 源码发布由`成都极致思维网络科技有限公司`维护,github开源地址不变,gitee从组织[ICC(InCloudCode)](https://gitee.com/incloudcode)转移到[成都极致思维网络科技有限公司/yexuejc-base](https://gitee.com/jzsw-it/yexuejc-base)
|
||||
- [update] 升级相关依赖
|
||||
- [feat] FileInput 从 FileUtil 中提取为独立 POJO
|
||||
- [update] StrUtil 增加异常堆栈转字符串方法 `printStackTrace`
|
||||
- [update] JwtUtil 升级
|
||||
- [update] FileUtil 增加读取大文件自定义方法和单纯读取方法
|
||||
- [update] JsonUtil 增加 `objToMap`,优化 `obj2Json`
|
||||
- [update] DateUtil 标准化日期时间转换函数
|
||||
|
||||
---
|
||||
#### version :1.2.9
|
||||
**time:2018-12-29 14:51:33** <br/>
|
||||
**branch:** master <br/>
|
||||
**update:** <br/>
|
||||
>1. 获取RSA密钥增加以输入流的形式获取密钥
|
||||
## 1.5.2-jre8
|
||||
|
||||
---
|
||||
#### version :1.2.6
|
||||
**time:2018-12-21 14:58:49** <br/>
|
||||
**branch:** master <br/>
|
||||
**update:** <br/>
|
||||
>1. RSA 验签增加初始化方法
|
||||
- 同步 jre11 的 1.5.2-jre11 功能
|
||||
|
||||
---
|
||||
#### version :1.2.8
|
||||
**time:2018-12-28 20:10:14** <br/>
|
||||
**branch:** master <br/>
|
||||
**update:** <br/>
|
||||
>1. 新增[ObjUtil](src/main/java/com/yexuejc/base/util/ObjUtil.java) 对类(对象)进行处理,提供深度克隆
|
||||
## 1.5.1-jre11
|
||||
|
||||
---
|
||||
#### version :1.2.6
|
||||
**time:2018-12-21 14:58:49** <br/>
|
||||
**branch:** master <br/>
|
||||
**update:** <br/>
|
||||
>1. RSA 验签增加初始化方法
|
||||
- [update] JsonUtil 升级优化,提供不同序列化/反序列化的 JsonMapper
|
||||
- [update] JsonUtil 增加特殊需求 String 反序列化
|
||||
- [feat] ObjUtil 增加对象深度 copy
|
||||
- [update] SysUtil 增加 JVM 内存判断等待锁
|
||||
- [update] 判断空优化
|
||||
|
||||
---
|
||||
#### version :1.2.7
|
||||
**time:2018-12-24 15:31:01** <br/>
|
||||
**branch:** master <br/>
|
||||
**update:** <br/>
|
||||
>1. FileUtil增加base64转File `base64ToFile()`
|
||||
## 1.5.0-jre8
|
||||
|
||||
---
|
||||
#### version :1.2.6
|
||||
**time:2018-12-21 14:58:49** <br/>
|
||||
**branch:** master <br/>
|
||||
**update:** <br/>
|
||||
>1. RSA 验签增加初始化方法
|
||||
- [update] AES 加解密、文件压缩、FileUtil.base64ToStr 优化,兼容 JDK11
|
||||
|
||||
---
|
||||
#### version :1.2.5
|
||||
**time:2018-12-20 13:13:23** <br/>
|
||||
**branch:** master <br/>
|
||||
**update:** <br/>
|
||||
>1. 丰富[JsonUtil](src/main/java/com/yexuejc/base/util/JsonUtil.java),支持直接对Map泛型转换
|
||||
## 1.4.5
|
||||
|
||||
---
|
||||
#### version :1.2.4
|
||||
**time:2018-11-27 14:46:04** <br/>
|
||||
**branch:** master <br/>
|
||||
**update:** <br/>
|
||||
>1. 工具类的优化
|
||||
>2.规范代码
|
||||
- [update] 变更 Base64 使用包,兼容 OpenJDK 11
|
||||
- [update] 扩展 FileUtil
|
||||
|
||||
---
|
||||
#### version :1.2.3
|
||||
**time:2018-11-23 16:45:42** <br/>
|
||||
**branch:** master <br/>
|
||||
**update:** <br/>
|
||||
>1. 修复RSA加密(签名)时选择的Base64(encodeBase64URLSafeString、encodeBase64String)区分
|
||||
---
|
||||
#### version :1.2.1
|
||||
**time:2018-11-9 15:05:06** <br/>
|
||||
**branch:** master <br/>
|
||||
**update:** <br/>
|
||||
>1. 优化resps
|
||||
---
|
||||
#### version :1.2.2
|
||||
**time:2018-11-20 20:20:12** <br/>
|
||||
**branch:** master <br/>
|
||||
**update:** <br/>
|
||||
>1. 优化RSA 加解密
|
||||
>1. 增加RSA 签名
|
||||
---
|
||||
#### version :1.2.1
|
||||
**time:2018-11-9 15:05:06** <br/>
|
||||
**branch:** master <br/>
|
||||
**update:** <br/>
|
||||
>1. 优化resps
|
||||
---
|
||||
#### version :1.2.0
|
||||
**time:2018-10-19 11:38:20** <br/>
|
||||
**branch:** master <br/>
|
||||
**update:** <br/>
|
||||
>1. 增加异步线程处理工具
|
||||
```$java
|
||||
SysUtil.threadRun(() -> {
|
||||
//异步执行代码块
|
||||
}
|
||||
```
|
||||
---
|
||||
## 1.4.4
|
||||
|
||||
#### version :1.1.9
|
||||
**time:2018-9-23 11:57:36** <br/>
|
||||
**branch:** master <br/>
|
||||
**update:** <br/>
|
||||
>1. 优化工具类包名:不向下兼容,升级请修改
|
||||
>2. 升级JWT工具类:更改为单例模式,可配置参数
|
||||
---
|
||||
- [fix] JsonUtil 类修复格式化出现的时区差
|
||||
|
||||
#### version :1.1.8
|
||||
**time:2018-9-3 19:29:56** <br/>
|
||||
**branch:** master <br/>
|
||||
**update:** <br/>
|
||||
>1. 增肌图片处理工具类
|
||||
>2. 增肌3des工具类
|
||||
>3. 增肌RSA工具类
|
||||
>4. 优化其他工具类
|
||||
---
|
||||
#### version :1.1.7
|
||||
**time:2018-8-17 11:22:50** <br/>
|
||||
**branch:** master <br/>
|
||||
**update:** <br/>
|
||||
>1. 优化ApiVO
|
||||
---
|
||||
## 1.4.3
|
||||
|
||||
#### version :1.1.6
|
||||
**time:2018-7-7 11:32:56** <br/>
|
||||
**branch:** master <br/>
|
||||
**update:** <br/>
|
||||
>1. maven仓库更新
|
||||
---
|
||||
- [update] DateTimeUtil 增加时间格式
|
||||
|
||||
#### version :1.1.5
|
||||
**time:2018-6-19 22:16:34** <br/>
|
||||
**branch:** master <br/>
|
||||
**update:** <br/>
|
||||
>1. 优化ApiVO
|
||||
## 1.4.2
|
||||
|
||||
---
|
||||
#### version :1.1.4
|
||||
**time:2018-6-14 22:27:59** <br/>
|
||||
**branch:** master <br/>
|
||||
**update:** <br/>
|
||||
>1. 统一编码:UTF-8
|
||||
- [update] 优化时间转换格式
|
||||
- [feat] `@ToUeProperty` 增加转换时间为时间戳功能
|
||||
|
||||
---
|
||||
#### version :1.1.3
|
||||
**time:2018年6月2日12:16:58** <br/>
|
||||
**branch:** master <br/>
|
||||
**update:** <br/>
|
||||
>1. 修改正则RegexUtils.java
|
||||
>2. 修改正则StrUtil.java->扩展genUUID()
|
||||
## 1.4.1
|
||||
|
||||
---
|
||||
#### version :1.1.2
|
||||
**time:** 2018-5-16 15:03:28<br/>
|
||||
**branch:** master <br/>
|
||||
**update:** <br/>
|
||||
>1. 修改依赖
|
||||
- [update] 升级所有依赖
|
||||
- [feat] DateTimeUtil 增加方法
|
||||
|
||||
---
|
||||
#### version :1.1.1
|
||||
**time:** 2018-5-12 22:25:05<br/>
|
||||
**branch:** master <br/>
|
||||
**update:** <br/>
|
||||
>1. 添加RSA
|
||||
---
|
||||
## 1.4.0
|
||||
|
||||
##### version :1.1.0
|
||||
**time:** 2018-5-12 22:25:05<br/>
|
||||
**branch:** master <br/>
|
||||
**update:** <br/>
|
||||
>1. 添加支持加密功能
|
||||
---
|
||||
- [update] 优化 Excel 和 Jwt 工具
|
||||
|
||||
#### version :1.0.0
|
||||
**time:** 2018-1-31 12:16:10<br/>
|
||||
**branch:** master <br/>
|
||||
**update:** <br/>
|
||||
>1. 基于java8开发的web应用工具包
|
||||
## 1.3.9
|
||||
|
||||
- [update] 公私钥配置
|
||||
|
||||
## 1.3.8
|
||||
|
||||
- [update] `@ToUeProperty` 增加 ignore 属性
|
||||
|
||||
## 1.3.7
|
||||
|
||||
- [fix] 回滚 1.3.6 至 1.3.5
|
||||
|
||||
## 1.3.6
|
||||
|
||||
- [feat] Json 支持下划线、驼峰互转(已回滚)
|
||||
|
||||
## 1.3.5
|
||||
|
||||
- [update] ObjUtil 增加兼容类型
|
||||
|
||||
## 1.3.4
|
||||
|
||||
- [update] 分账完善
|
||||
|
||||
## 1.3.3
|
||||
|
||||
- [update] 返回参数优化
|
||||
|
||||
## 1.3.2
|
||||
|
||||
- [update] 优化日志
|
||||
|
||||
## 1.3.1
|
||||
|
||||
- [update] 再扩展分转元
|
||||
|
||||
## 1.2.9
|
||||
|
||||
- [feat] RSA 密钥增加以输入流形式获取
|
||||
|
||||
## 1.2.8
|
||||
|
||||
- [feat] 新增 ObjUtil,提供深度克隆
|
||||
|
||||
## 1.2.7
|
||||
|
||||
- [feat] FileUtil 增加 base64 转 File
|
||||
|
||||
## 1.2.5
|
||||
|
||||
- [feat] JsonUtil 支持 Map 泛型转换
|
||||
|
||||
## 1.2.4
|
||||
|
||||
- [update] 优化代码和 FileUtil
|
||||
|
||||
## 1.2.3
|
||||
|
||||
- [fix] RSA 加密(签名)修复
|
||||
|
||||
## 1.2.2
|
||||
|
||||
- [feat] 增加 RSA 签名
|
||||
|
||||
## 1.2.1
|
||||
|
||||
- [update] 更新 Resps
|
||||
|
||||
## 1.2.0
|
||||
|
||||
- [feat] 增加异步线程处理工具
|
||||
|
||||
## 1.1.9
|
||||
|
||||
- [update] 删除多余文件
|
||||
|
||||
## 1.1.8
|
||||
|
||||
- [update] 功能更新
|
||||
|
||||
## 1.1.7
|
||||
|
||||
- [update] 功能更新
|
||||
|
||||
## 1.1.6
|
||||
|
||||
- [update] Maven 仓库变更
|
||||
|
||||
## 1.1.5
|
||||
|
||||
- [update] 功能更新
|
||||
|
||||
## 1.1.3
|
||||
|
||||
- [update] 修改正则 RegexUtils.java
|
||||
- [update] StrUtil 扩展 `genUUID()`
|
||||
- [update] DateTimeUtil 扩展
|
||||
|
||||
## 1.1.2
|
||||
|
||||
- [update] 修改依赖
|
||||
|
||||
## 1.1.1
|
||||
|
||||
- [update] 功能更新
|
||||
|
||||
## 1.1.0
|
||||
|
||||
- [update] 功能更新
|
||||
|
||||
## 1.0.1
|
||||
|
||||
- [update] 功能更新
|
||||
|
||||
## 1.0.0
|
||||
|
||||
- [feat] 项目初始版本,包含基础工具类
|
||||
Reference in new issue
Block a user