Prepare release

This commit is contained in:
Looly 2022-05-06 13:48:31 +08:00
commit 5ebb9bb413
427 changed files with 594 additions and 126 deletions

View File

@ -3,6 +3,24 @@
-------------------------------------------------------------------------------------------------------------
# 5.8.0 (2022-05-06)
### ❌不兼容特性
* 【extra 】 升级jakarta.validation-api到3.x包名变更导致不能向下兼容
* 【core 】 BeanUtil删除了beanToMap(Object)方法,因为有可变参数的方法,这个删除可能导致直接升级找不到方法,重新编译项目即可。
### 🐣新特性
* 【core 】 Singleton增加部分方法pr#609@Gitee
* 【core 】 BeanUtil增加beanToMap重载pr#2292@Github
* 【core 】 Assert增加对应的equals及notEquals方法pr#612@Gitee
* 【core 】 Assert增加对应的equals及notEquals方法pr#612@Gitee
* 【core 】 DigestUtil增加sha512方法issue#2298@Github
### 🐞Bug修复
* 【db 】 修复RedisDS无法设置maxWaitMillis问题issue#I54TZ9@Gitee
-------------------------------------------------------------------------------------------------------------
# 5.8.0.M4 (2022-04-27)
### ❌不兼容特性

View File

@ -144,18 +144,18 @@ We provide the T-Shirt and Sweater with Hutool Logo, please visit the shop
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>5.8.0.M4</version>
<version>5.8.0</version>
</dependency>
```
### 🍐Gradle
```
implementation 'cn.hutool:hutool-all:5.8.0.M4'
implementation 'cn.hutool:hutool-all:5.8.0'
```
## 📥Download
- [Maven Repo](https://repo1.maven.org/maven2/cn/hutool/hutool-all/5.8.0.M4/)
- [Maven Repo](https://repo1.maven.org/maven2/cn/hutool/hutool-all/5.8.0/)
> 🔔note:
> Hutool 5.x supports JDK8+ and is not tested on Android platforms, and cannot guarantee that all tool classes or tool methods are available.

View File

@ -144,20 +144,20 @@ Hutool的存在就是为了减少代码搜索成本避免网络上参差不
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>5.8.0.M4</version>
<version>5.8.0</version>
</dependency>
```
### 🍐Gradle
```
implementation 'cn.hutool:hutool-all:5.8.0.M4'
implementation 'cn.hutool:hutool-all:5.8.0'
```
### 📥下载jar
点击以下链接,下载`hutool-all-X.X.X.jar`即可:
- [Maven中央库](https://repo1.maven.org/maven2/cn/hutool/hutool-all/5.8.0.M4/)
- [Maven中央库](https://repo1.maven.org/maven2/cn/hutool/hutool-all/5.8.0/)
> 🔔️注意
> Hutool 5.x支持JDK8+对Android平台没有测试不能保证所有工具类或工具方法可用。

View File

@ -1 +1 @@
5.8.0.M4
5.8.0

View File

@ -1 +1 @@
var version = '5.8.0.M4'
var version = '5.8.0'

View File

@ -9,7 +9,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.8.0.M4</version>
<version>5.8.0</version>
</parent>
<artifactId>hutool-all</artifactId>

View File

@ -9,7 +9,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.8.0.M4</version>
<version>5.8.0</version>
</parent>
<artifactId>hutool-aop</artifactId>

0
hutool-aop/src/main/java/cn/hutool/aop/ProxyUtil.java Normal file → Executable file
View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

@ -9,7 +9,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.8.0.M4</version>
<version>5.8.0</version>
</parent>
<artifactId>hutool-bloomFilter</artifactId>

View File

@ -9,7 +9,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.8.0.M4</version>
<version>5.8.0</version>
</parent>
<artifactId>hutool-bom</artifactId>

View File

@ -9,7 +9,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.8.0.M4</version>
<version>5.8.0</version>
</parent>
<artifactId>hutool-cache</artifactId>

0
hutool-cache/src/main/java/cn/hutool/cache/Cache.java vendored Normal file → Executable file
View File

0
hutool-cache/src/main/java/cn/hutool/cache/CacheListener.java vendored Normal file → Executable file
View File

0
hutool-cache/src/main/java/cn/hutool/cache/CacheUtil.java vendored Normal file → Executable file
View File

0
hutool-cache/src/main/java/cn/hutool/cache/GlobalPruneTimer.java vendored Normal file → Executable file
View File

View File

0
hutool-cache/src/main/java/cn/hutool/cache/file/LFUFileCache.java vendored Normal file → Executable file
View File

0
hutool-cache/src/main/java/cn/hutool/cache/file/LRUFileCache.java vendored Normal file → Executable file
View File

0
hutool-cache/src/main/java/cn/hutool/cache/file/package-info.java vendored Normal file → Executable file
View File

0
hutool-cache/src/main/java/cn/hutool/cache/impl/AbstractCache.java vendored Normal file → Executable file
View File

0
hutool-cache/src/main/java/cn/hutool/cache/impl/CacheObj.java vendored Normal file → Executable file
View File

View File

View File

0
hutool-cache/src/main/java/cn/hutool/cache/impl/FIFOCache.java vendored Normal file → Executable file
View File

0
hutool-cache/src/main/java/cn/hutool/cache/impl/LFUCache.java vendored Normal file → Executable file
View File

0
hutool-cache/src/main/java/cn/hutool/cache/impl/LRUCache.java vendored Normal file → Executable file
View File

0
hutool-cache/src/main/java/cn/hutool/cache/impl/NoCache.java vendored Normal file → Executable file
View File

0
hutool-cache/src/main/java/cn/hutool/cache/impl/ReentrantCache.java vendored Normal file → Executable file
View File

0
hutool-cache/src/main/java/cn/hutool/cache/impl/StampedCache.java vendored Normal file → Executable file
View File

0
hutool-cache/src/main/java/cn/hutool/cache/impl/TimedCache.java vendored Normal file → Executable file
View File

0
hutool-cache/src/main/java/cn/hutool/cache/impl/package-info.java vendored Normal file → Executable file
View File

0
hutool-cache/src/main/java/cn/hutool/cache/package-info.java vendored Normal file → Executable file
View File

0
hutool-cache/src/test/java/cn/hutool/cache/CacheConcurrentTest.java vendored Normal file → Executable file
View File

0
hutool-cache/src/test/java/cn/hutool/cache/CacheTest.java vendored Normal file → Executable file
View File

0
hutool-cache/src/test/java/cn/hutool/cache/FileCacheTest.java vendored Normal file → Executable file
View File

0
hutool-cache/src/test/java/cn/hutool/cache/LRUCacheTest.java vendored Normal file → Executable file
View File

View File

@ -9,7 +9,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.8.0.M4</version>
<version>5.8.0</version>
</parent>
<artifactId>hutool-captcha</artifactId>

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

@ -9,7 +9,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.8.0.M4</version>
<version>5.8.0</version>
</parent>
<artifactId>hutool-core</artifactId>

View File

@ -29,6 +29,7 @@ import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.function.Consumer;
import java.util.function.Supplier;
import java.util.stream.Collectors;
@ -605,15 +606,24 @@ public class BeanUtil {
}
// --------------------------------------------------------------------------------------------- beanToMap
/**
* 对象转Map不进行驼峰转下划线不忽略值为空的字段
* 将bean的部分属性转换成map<br>
* 可选拷贝哪些属性值默认是不忽略值为{@code null}的值的
*
* @param bean bean对象
* @param bean bean
* @param properties 需要拷贝的属性值{@code null}或空表示拷贝所有值
* @return Map
* @since 5.8.0
*/
public static Map<String, Object> beanToMap(Object bean) {
return beanToMap(bean, false, false);
public static Map<String, Object> beanToMap(Object bean, String... properties) {
Editor<String> keyEditor = null;
if(ArrayUtil.isNotEmpty(properties)){
final Set<String> propertiesSet = CollUtil.set(false, properties);
keyEditor = property -> propertiesSet.contains(property) ? property : null;
}
// 指明了要复制的属性 所以不忽略null值
return beanToMap(bean, new LinkedHashMap<>(properties.length, 1), false, keyEditor);
}
/**

View File

View File

View File

View File

View File

View File

Some files were not shown because too many files have changed in this diff Show More