Hutool 39 New Hot! -
Older versions of Hutool would write temporary files to disk for large zip operations. introduced ZipUtil.zip(File zipFile, boolean withTempFile, File... sources) . By setting withTempFile to false , the library now zips entirely in memory using ByteArrayOutputStream , which is a game-changer for serverless functions (AWS Lambda) where writing to /tmp is expensive.
This public link is valid for 7 days and shares a thread, including any personal information you added. This link or copies made by others cannot be deleted. If you share with third parties, their policies apply. Can’t copy the link right now. Try again later. hutool-all » 5.8.39 - Maven Repository
DateUtil.parse() now handles and UTC offsets like 2025-03-15T14:30:45.123456789+05:30 .
Taking Java's functional capabilities to the next level with custom monads and stream enhancements. Zero-Config HTTP/3 Support: you know and love, now upgraded for modern web speeds. Virtual Threads Optimization: hutool 39 new
Given that we are now in the era of Java 21, is learning "hutool 39 new" a waste of time?
import cn.hutool.core.lang.Assert; import cn.hutool.core.util.DesensitizedUtil; import java.util.Collections; import java.util.List; public class CoreUtilityDemo public static void main(String[] args) // 1. Passport Privacy Desensitization (New in 5.8.39) String rawPassport = "G12345678"; String maskedPassport = DesensitizedUtil.passport(rawPassport); System.out.println("Protected: " + maskedPassport); // Prints protected formatting // 2. Clear Collection Verification Assertions List emptyReportQueue = Collections.emptyList(); Assert.isEmpty(emptyReportQueue, "Process aborted: The payload tracking queue must be empty!"); Use code with caution. Example B: Configuring Global DB Streaming Properties
// Hutool 39: Cleaner var result = JsonUtil.parseObj(jsonStr).getBean("data", new TypeReference<List<Order>>() {}); Older versions of Hutool would write temporary files
:修复了 ZipUtil 在调用 zlib 和 unZlib 后未正确释放资源的问题,避免资源泄漏。
: Alex noticed the application felt snappier. The update had optimized XXXToMapCopier and added a RecyclableBatchThreadPoolExecutor , which managed system resources far more efficiently than their old manual setups. The Result: Elegant Java
Symmetric, asymmetric, and digest encryption utilities. By setting withTempFile to false , the library
Proper RFC-compliant escaping + file appending.
#Java #OpenSource #Hutool
The DateUtil in this version was a favorite among users for its ability to parse almost any date string format automatically and perform complex date arithmetic (e.g., DateUtil.offsetMonth ) in a single line.