39 New [better] | Hutool
// Before: Type erasure hell List<Map<String, Integer>> list = JSONUtil.toBean(jsonStr, new TypeReference<>() {}); // Hutool 39: Cleaner var result = JsonUtil.parseObj(jsonStr).getBean("data", new TypeReference<List<Order>>() {}); HttpRequest now supports asynchronous execution with exponential backoff:
CompletableFuture<String> future = HttpRequest.get("https://slow-api.com/data") .timeout(5000) .retry(3, RetryStrategy.EXPONENTIAL) .executeAsync(); The old SecureUtil.md5() (deprecated) is replaced by Argon2id – the winner of the Password Hashing Competition:
A: Partially. Core modules work, but virtual threads and NIO.2 features require Android API 26+. hutool 39 new
| Operation | Hutool 5.x | Hutool 39 New | Improvement | |-----------|------------|--------------|--------------| | File copy (1GB) | 2.3 seconds | 1.4 seconds | | | JSON parse (10k records) | 450 ms | 310 ms | 31% faster | | AES encrypt (100MB) | 890 ms | 620 ms | 30% faster | | Thread pool startup (10k tasks) | 1.2 seconds | 0.4 sec (virtual) | 66% faster |
String password = "user123"; String hash = SecureUtil.argon2id(password); boolean verified = SecureUtil.argon2idVerify(password, hash); DateUtil.parse() now handles nanoseconds and UTC offsets like 2025-03-15T14:30:45.123456789+05:30 . 2.10. BeanUtil.copyProperties() – Deep Copy with Cyclic Detection A long-awaited fix: Hutool 39 can now copy nested objects without stack overflow from cyclic references. // New in Hutool 39: One-line JWS generation
A: Hutool is 1/5 the size of Commons+Guava combined and offers higher-level APIs (e.g., ImgUtil , CaptchaUtil ) that neither has.
// New in Hutool 39: One-line JWS generation String token = JwtUtil.create() .setPayload("userId", 12345) .setExpirationTime(DateUtil.tomorrow()) .sign(Algorithm.HS256("mySecret")); // Verification Claims claims = JwtUtil.parse(token).verify("mySecret").getClaims(); CaptchaUtil ) that neither has.
A: Visit hutool.cn/docs/#/changelog and search for "6.0.0.M39". This article was last updated in May 2026. Hutool is an Apache 2.0-licensed project maintained by the Dromara community.