Hutool 39 New -
Fast, type-inferred map instantiation. Enhanced String & Text Processing ( StrUtil )
: Added global configuration options for FetchSize in the db module, allowing for better memory management during large result set processing. Strategic Advantage for Developers
Hutool’s "Core" remains the heart of the library, and 5.8.39 introduces several "quality of life" features:
Hutool 5.8.39 reinforces its position as an essential toolset for Java developers, offering a perfect blend of stability and new capabilities. By updating, developers can leverage improved performance, enhanced security, and better support for AI and HTTP services, ultimately making their Java code more efficient and "sweet". hutool 39 new
| Area | 5.x | 6.x | |------|-----|-----| | Minimum JDK | 8 | 17 | | DateTime | Mutable | Immutable (better thread safety) | | DateUtil | Some methods return new objects | Consistent immutability | | SecureUtil | Many deprecated methods removed | Use KeyUtil , Crypto classes instead | | IoUtil | close() quietly | Throws IOException (no more swallowing) |
Handling Excel files and complex JSON payloads remains one of the most common tasks for enterprise developers. Hutool 39 brings massive performance lifts here:
:修复了 ThreadUtil 中中断异常处理丢失中断信息的问题,并解决了 ConcurrencyTester 资源未释放的问题。 Fast, type-inferred map instantiation
Are you looking to from an older Hutool version?
: Continued refinement of core utilities, such as XXXToMapCopier , to reduce overhead during object-to-map transformations.
<dependency> <groupId>cn.hutool</groupId> <artifactId>hutool-all</artifactId> <version>0.39</version> </dependency> : Continued refinement of core utilities, such as
Working with collections just got friendlier. The new forEachIf method lets you iterate conditionally without breaking the flow:
5.8.39 版本对 Hutool AI 模块进行了多项升级,主要包括:
