代码示例来自。

If you want to configure Hutool for your project, let me know:

// 集合判空 boolean isEmpty = CollUtil.isEmpty(list); boolean isNotEmpty = CollUtil.isNotEmpty(list);

// MD5 String md5 = DigestUtil.md5Hex("password"); // AES encryption Aes aes = SecureUtil.aes("1234567890123456".getBytes()); String encrypted = aes.encryptBase64("secret");