?A set of tools that keep Java sweet.
https://hutool.cn/ ?
?English Documentation
Hutool
is a feature-rich and easy-to-use Java tool library . Through the use of many practical tool classes, it aims to help developers complete various development tasks quickly and conveniently. These encapsulated tools cover a series of operations such as strings, numbers, collections, encodings, dates, files, IO, encryption, database JDBC, JSON, HTTP clients, etc., and can meet various development needs.
Hutool = Hu + tool, which is an open source library stripped of the underlying code of the original company project. "Hu" represents the company name, and tool represents the tool. Hutool is homophonic for "confused". On the one hand, it is concise and easy to understand, and on the other hand, it means "it is rare to be confused".
Hutool
is both a tool set and a knowledge base. We never boast of original code. Most of the tool classes are ported , so:
A Java basic tool class that encapsulates JDK methods such as files, streams, encryption and decryption, transcoding, regularization, threads, XML, etc., to form various Util tool classes, and also provides the following components:
module | introduce |
---|---|
hutool-aop | JDK dynamic proxy encapsulation provides aspect support under non-IOC |
hutool-bloomFilter | Bloom filtering, providing Bloom filtering of some Hash algorithms |
hutool-cache | Simple cache implementation |
hutool-core | Core, including Bean operations, dates, various Utils, etc. |
hutool-cron | Scheduled task module, providing scheduled tasks similar to Crontab expressions |
hutool-crypto | Encryption and decryption module, providing symmetric, asymmetric and digest algorithm encapsulation |
hutool-db | JDBC encapsulated data operations, based on ActiveRecord ideas |
hutool-dfa | Multi-keyword search based on DFA model |
hutool-extra | Extension module, encapsulating third parties (template engine, email, Servlet, QR code, Emoji, FTP, word segmentation, etc.) |
hutool-http | Http client encapsulation based on HttpUrlConnection |
hutool-log | Automatically identify the log facade implemented by logs |
hutool-script | Script execution encapsulation, such as Javascript |
hutool-setting | More powerful Setting configuration file and Properties encapsulation |
hutool-system | System parameter call encapsulation (JVM information, etc.) |
hutool-json | JSON implementation |
hutool-captcha | Image verification code implementation |
hutool-poi | Encapsulation of Excel and Word in POI |
hutool-socket | Java-based Socket encapsulation of NIO and AIO |
hutool-jwt | JSON Web Token (JWT) encapsulation implementation |
Each module can be introduced individually according to requirements, or all modules can be introduced by introducing hutool-all
.
Chinese documentation
Chinese backup document
?Reference API
?Video introduction
If you think Hutool is good, you can donate and treat the maintainer to eat spicy strips~, I would like to express my gratitude ^_^.
Donate on Gitee
You can also support Hutool maintenance by purchasing Hutool peripheral products!
We provide peripheral products printed with Hutool Logo. Please click to purchase and support:
Hutool peripheral store?
Add the following content to the dependencies of the project's pom.xml:
< dependency >
< groupId >cn.hutool</ groupId >
< artifactId >hutool-all</ artifactId >
< version >5.8.34</ version >
</ dependency >
implementation 'cn.hutool:hutool-all:5.8.34'
Click the following link to download hutool-all-XXXjar
:
?️Note that Hutool 5.x supports JDK8+ and has not been tested on the Android platform. It cannot guarantee that all tool classes or tool methods are available. If your project uses JDK7, please use Hutool 4.x version (no longer updated)
Visit Hutool's Gitee homepage: https://gitee.com/dromara/hutool Download the entire project source code (either v5-master or v5-dev branch) and then enter the Hutool project directory to execute:
./hutool.sh install
Then you can use Maven to import it.
Hutool's source code is divided into two branches, with the following functions:
branch | effect |
---|---|
v5-master | The main branch, the branch used by the release version, is consistent with the jar submitted by the central library and does not receive any PR or modification. |
v5-dev | Development branch, defaults to the SNAPSHOT version of the next version, accepts modifications or pr |
When submitting feedback, please indicate the JDK version, Hutool version and related dependent library versions you are using.
Hutool welcomes anyone to contribute to Hutool and contribute code, but the maintainer is an obsessive-compulsive disorder patient. In order to take care of patients, the PR (pull request) that needs to be submitted must comply with some specifications. The specifications are as follows:
v5-dev
branch. Hutool used a new branch after version 5.x: v5-master
is the main branch, which means that the version of the central library has been released. This branch does not allow PR or modification.Click the document source code address to add bricks and tiles