Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V8.0.x #13

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 16 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
| [com.yishuifengxiao.common.tool.context](https://apidoc.gitee.com/zhiyubujian/tool/com/yishuifengxiao/common/tool/context/package-summary.html) | 数据存储工具 |
| [com.yishuifengxiao.common.tool.converter](https://apidoc.gitee.com/zhiyubujian/tool/com/yishuifengxiao/common/tool/converter/package-summary.html) | 数据转换工具 |
| [com.yishuifengxiao.common.tool.datetime](https://apidoc.gitee.com/zhiyubujian/tool/com/yishuifengxiao/common/tool/datetime/package-summary.html) | 日期时间工具 |
| [com.yishuifengxiao.common.tool.encoder](https://apidoc.gitee.com/zhiyubujian/tool/com/yishuifengxiao/common/tool/encoder/package-summary.html) | 加解密工具 |
| [com.yishuifengxiao.common.tool.codec](https://apidoc.gitee.com/zhiyubujian/tool/com/yishuifengxiao/common/tool/encoder/package-summary.html) | 加解密工具 |
| [com.yishuifengxiao.common.tool.entity](https://apidoc.gitee.com/zhiyubujian/tool/com/yishuifengxiao/common/tool/entity/package-summary.html) | 基础通用对象 |
| [com.yishuifengxiao.common.tool.exception](https://apidoc.gitee.com/zhiyubujian/tool/com/yishuifengxiao/common/tool/exception/package-summary.html) | 自定义异常 |
| [com.yishuifengxiao.common.tool.exception.constant](https://apidoc.gitee.com/zhiyubujian/tool/com/yishuifengxiao/common/tool/exception/constant/package-summary.html) | 异常错误码常量 |
Expand Down Expand Up @@ -59,7 +59,6 @@ CustomException e = new CustomException();
DataException ex = new DataException();

//将CustomException复制为DataException
// 在使用此方法时,属性名一致的将会被复制,该方法是一个线程安全类的
// 第一个参数为源对象,第二个参数为目标对象
DataException copy = BeanUtil.copy(e, ex);

Expand All @@ -83,7 +82,7 @@ CustomException exception = BeanUtil.byteToObject(bytes, CustomException.class);
- 将数据转换成集合
- 安全地创建集合

> 该工具是线程安全类的


工具路径:

Expand Down Expand Up @@ -176,7 +175,7 @@ Map<String, Object> map = MapUtil.instance().put("k1", "v1").
- 获取过去指定月份的那个月份的1号的开始时间点(00:00:00)
- 获取过去指定年份的那个时间的1月1号的那个时间的开始时间点(00:00:00)

> 该工具是线程安全类的


工具路径:

Expand Down Expand Up @@ -221,7 +220,7 @@ Date monthStart1 = DateOffsetUtil.monthStart(1);
- 获取过去指定月份的那个月份的1号的开始时间点(00:00:00)
- 获取过去指定年份的那个时间的1月1号的那个时间的开始时间点(00:00:00)

> 该工具是线程安全类的


工具路径:

Expand Down Expand Up @@ -260,7 +259,7 @@ LocalDateTime monthStart1 = TemporalUtil.monthStart(1);
- 将字符串解析为时间
- 将时间格式化为字符串

> 该工具是线程安全类的


工具路径:

Expand Down Expand Up @@ -310,7 +309,7 @@ LocalDateTime parse1 = DateTimeUtil.parse("2021-10-10 12:12:12", "yyyy-MM-dd HH:
工具路径:

```java
com.yishuifengxiao.common.tool.encoder.AES
com.yishuifengxiao.common.tool.codec.AES
```

使用示例:
Expand All @@ -332,7 +331,7 @@ AES.decrypt("秘钥", encrypt);
工具路径:

```java
com.yishuifengxiao.common.tool.encoder.DES
com.yishuifengxiao.common.tool.codec.DES
```

使用示例:
Expand All @@ -351,7 +350,7 @@ DES.decrypt("秘钥", encrypt);
工具路径:

```java
com.yishuifengxiao.common.tool.encoder.Md5
com.yishuifengxiao.common.tool.codec.MD5
```

使用示例:
Expand Down Expand Up @@ -483,7 +482,7 @@ Page<Object> convert = page.convert(原始数据 -> {

该工具的主要目的是在安全地关闭各种Closeable实例。

> 该工具是一个线程安全类的工具


工具路径:

Expand All @@ -505,7 +504,7 @@ CloseUtil.close(inputStream, outputStream);

该工具的主要目的是进行文件和base64字符串之间进行互相转换和获取文件的MD5值。

> 该工具是一个线程安全类的工具


工具路径:

Expand All @@ -530,7 +529,7 @@ String md5 = FileUtil.getMd5(file);

该工具的主要目的是进行图片和base64字符串之间进行互相转换

> 该工具是一个线程安全类的工具


工具路径:

Expand Down Expand Up @@ -561,7 +560,7 @@ ImageUtil.base64ToImage(image2Base64, "待保存的图片的地址");

该工具的主要目的是构建一个基于内存的全局字典缓存工具。在使用该工具时注意防止内存泄露。

> 该工具是一个线程安全类的工具


工具路径:

Expand Down Expand Up @@ -596,9 +595,9 @@ com.yishuifengxiao.common.tool.context.LocalCache

## 7.2 上下文存储工具

该工具与全局存储工具基本类似,但不同的是,该工具是基于当前线程实现的,在当前线程中存储的数据不能再其他线程中访问。在使用该工具时注意防止内存泄露。
该工具与全局存储工具基本类似,但不同的是,在当前线程中存储的数据不能再其他线程中访问。在使用该工具时注意防止内存泄露。


> 该工具是一个线程安全类的工具

工具路径:

Expand Down Expand Up @@ -724,7 +723,7 @@ ExecuteUtil.execute(() -> {
- 判断该字符串是否为一个合法的身份证号
- 从字符串格式的身份证号里提取出出生日期

> 该工具是一个线程安全类的工具


工具路径:

Expand All @@ -747,7 +746,7 @@ System.out.println(birthday);

该工具的主要目的是计算两个经纬度之间距离。

> 该工具是一个线程安全类的工具


工具路径:

Expand Down
Loading