MCPcopy
hub / github.com/chinabugotech/hutool

github.com/chinabugotech/hutool @v5.8.46 sqlite

repository ↗ · DeepWiki ↗ · release v5.8.46 ↗
16,460 symbols 62,105 edges 2,262 files 9,391 documented · 57%
README
<a href="https://hutool.cn/"><img src="https://cdn.jsdelivr.net/gh/looly/hutool-site/images/logo.jpg" width="45%"></a>






<strong>🍬A set of tools that keep Java sweet.</strong>






👉 <a href="https://hutool.cn">https://hutool.cn/</a> 👈







<a target="_blank" href="https://search.maven.org/artifact/cn.hutool/hutool-all">
    <img src="https://img.shields.io/maven-central/v/cn.hutool/hutool-all.svg?label=Maven%20Central" />
</a>
<a target="_blank" href="https://license.coscl.org.cn/MulanPSL2">
    <img src="https://img.shields.io/:license-MulanPSL2-blue.svg" />
</a>
<a target="_blank" href="https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html">
    <img src="https://img.shields.io/badge/JDK-8+-green.svg" />
</a>
<a target="_blank" href="https://app.travis-ci.com/chinabugotech/hutool">
    <img src="https://api.travis-ci.com/chinabugotech/hutool.svg?branch=v5-master" />
</a>
<a href="https://www.codacy.com/gh/chinabugotech/hutool/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=chinabugotech/hutool&amp;utm_campaign=Badge_Grade">
    <img src="https://app.codacy.com/project/badge/Grade/8a6897d9de7440dd9de8804c28d2871d"/>
</a>
<a href="https://codecov.io/gh/chinabugotech/hutool">
    <img src="https://codecov.io/gh/chinabugotech/hutool/branch/v5-master/graph/badge.svg" />
</a>
<a target="_blank" href="https://gitter.im/hutool/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge">
    <img src="https://badges.gitter.im/hutool/Lobby.svg" />
</a>
<a target="_blank" href='https://gitee.com/chinabugotech/hutool/stargazers'>
    <img src='https://gitee.com/chinabugotech/hutool/badge/star.svg?theme=gvp' alt='star'/>
</a>
<a target="_blank" href='https://github.com/chinabugotech/hutool'>
    <img src="https://img.shields.io/github/stars/chinabugotech/hutool.svg?style=social" alt="github star"/>
</a>
<a target="_blank" href='https://gitcode.com/chinabugotech/hutool'>
    <img src="https://gitcode.com/chinabugotech/hutool/star/badge.svg" alt="gitcode star"/>
</a>
<a href="https://deepwiki.com/chinabugotech/hutool">
    <img src="https://deepwiki.com/badge.svg" alt="Ask DeepWiki">
</a>










<a href="https://qm.qq.com/q/YsLhyheHSA">
<img alt="" src="https://img.shields.io/badge/QQ%E7%BE%A4%E2%91%A7-667030118-orange"/></a>

🌎中文说明


📚Introduction

Hutool is a small but comprehensive library of Java tools, achieved by encapsulation through static methods, reduce the cost of learning related APIs, increase productivity, and make Java as elegant as a functional programming language,let the Java be "sweet" too.

Hutool tools and methods from each user's crafted, it covers all aspects of the underlying code of Java development, it is a powerful tool for large project development to solve small problems, but also the efficiency of small projects;

Hutool is a project "util" package friendly alternative, it saves developers on the project of common classes and common tool methods of encapsulation time, so that development focus on business, at the same time can minimize the encapsulation is not perfect to avoid the bugs.

🎁Origin of the 'Hutool' name

Hutool = Hu + tool,Is the original company project after the stripping of the underlying code of the open source library , "Hu" is the short name of the company , 'tool' that tool .

Hutool,' Hútú '(Chinese Pinyin),On the one hand, it is simple and easy to understand, on the other hand, it means "hard to be confused".(note: confused means 'Hútú (糊涂)' in china )

🍺How Hutool is changing the way we code

The goal of Hutool is to use a simple function instead of a complex piece of code, thus avoiding the problem of "copy and paste" code as much as possible and revolutionizing the way we write code.

To calculate MD5 for example:

  • 👴【Before】Open a search engine -> search "Java MD5 encryption" -> open a blog -> copy and paste -> change it to work.
  • 👦【Now 】import Hutool -> SecureUtil.md5()

Hutool exists to reduce code search costs and avoid bugs caused by imperfect code on the web.

Thanks

> this README is PR by chengxian-yi

🛠️Module

A Java-based tool class for files, streams, encryption and decryption, transcoding, regular, thread, XML and other JDK methods for encapsulation,composing various Util tool classes, as well as providing the following modules:

module description
hutool-aop JDK dynamic proxy encapsulation to provide non-IOC faceting support
hutool-bloomFilter Bloom filtering to provide some Hash algorithm Bloom filtering
hutool-cache Simple cache
hutool-core Core, including Bean operations, dates, various Utils, etc.
hutool-cron Task scheduling with Cron expressions
hutool-crypto Provides symmetric, asymmetric and digest algorithm encapsulation
hutool-db Db operations based on ActiveRecord thinking.
hutool-dfa DFA models, such as multi-keyword lookups
hutool-extra Extension modules, third-party wrappers (template engine, mail, servlet, QR code, Emoji, FTP, word splitting, etc.)
hutool-http Http client
hutool-log Log (facade)
hutool-script Script execution encapsulation, e.g. Javascript
hutool-setting Stronger Setting Profile tools and Properties tools
hutool-system System parameter tools (JVM information, etc.)
hutool-json JSON
hutool-captcha Image Captcha
hutool-poi Tools for working with Excel and Word in POI
hutool-socket Java-based tool classes for NIO and AIO sockets
hutool-jwt JSON Web Token (JWT) implement
hutool-ai AI implement

Each module can be introduced individually, or all modules can be introduced by introducing hutool-all as required.


📝Doc

📘Chinese documentation

📘Chinese back-up documentation

📙API

🎬Video


📦Install

🍊Maven

<dependency>
    <groupId>cn.hutool</groupId>
    <artifactId>hutool-all</artifactId>
    <version>5.8.46</version>
</dependency>

🍐Gradle

implementation 'cn.hutool:hutool-all:5.8.46'

📥Download

🔔️note: Hutool 5.x supports JDK8+ and is not tested on Android platforms, and cannot guarantee that all tool classes or tool methods are available. If your project uses JDK7, please use Hutool 4.x version.

🚽Compile and install

Download the entire project source code

gitee:https://gitee.com/chinabugotech/hutool

github:https://github.com/chinabugotech/hutool

cd ${hutool}
./hutool.sh install

🏗️Other

🎋Branch Description

Hutool's source code is divided into two branches:

branch description
v5-master The master branch, the branch used by the release version, is the same as the jar committed to the central repository and does not receive any pr or modifications.
v5-dev Development branch, which defaults to the next SNAPSHOT version, accepts modifications or pr

🐞Provide feedback or suggestions on bugs

When submitting feedback, please indicate which JDK version, Hutool version, and related dependency library version you are using.

🧬Principles of PR(pull request)

Hutool welcomes anyone to contribute code to Hutool, but the author suffers from OCD and needs to submit a pr (pull request) that meets some specifications in order to care for the patient.:

  1. Improve the comments, especially each new method should follow the Java documentation specification to indicate the method description, parameter description, return value description and other information, if necessary, please add unit tests, if you want, you can also add your name.
  2. Code indentation according to Eclipse.
  3. Newly added methods do not use third-party library methods,Unless the method tool is add to the 'extra module'.
  4. Please pull request to the v5-dev branch. Hutool uses a new branch after 5.x: v5-master is the master branch, which indicates the version of the central library that has been released, and this branch does not allow pr or modifications.

📖 Documentation source code

Documentation source code


⭐Star Hutool

Stargazers over time

Extension points exported contracts — how you extend this code

AIService (Interface)
模型公共的API功能,特有的功能在model.xx.XXService下定义 @author elichow @since 5.8.38 [16 implementers]
hutool-ai/src/main/java/cn/hutool/ai/core/AIService.java
MsgDecoder (Interface)
消息解码器 @author looly @param 解码后的目标类型 [23 implementers]
hutool-socket/src/main/java/cn/hutool/socket/protocol/MsgDecoder.java
PartMatcher (Interface)
表达式中的某个位置部分匹配器 用于匹配日期位中对应数字是否匹配 @author Looly [7 implementers]
hutool-cron/src/main/java/cn/hutool/cron/pattern/matcher/PartMatcher.java
RsHandler (Interface)
结果集处理接口 此接口用于实现ResultSet 转换或映射为用户指定的pojo对象 默认实现有: @see EntityHandler @see EntityListHandler @see EntitySetH [18 implementers]
hutool-db/src/main/java/cn/hutool/db/handler/RsHandler.java
TraceLog (Interface)
TRACE级别日志接口 @author Looly [10 implementers]
hutool-log/src/main/java/cn/hutool/log/level/TraceLog.java
BloomFilter (Interface)
Bloom filter 是由 Howard Bloom 在 1970 年提出的二进制向量数据结构,它具有很好的空间和时间效率,被用来检测一个元素是不是集合中的一个成员。 如果检测结果为是,该元素不一定在集合中;但如果检测结果为否, [12 …
hutool-bloomFilter/src/main/java/cn/hutool/bloomfilter/BloomFilter.java
JSONBeanParser (Interface)
实现此接口的类可以通过实现parse(value)方法来将JSON中的值解析为此对象的值 @author Looly @since 5.7.8 @param 参数类型 [47 implementers]
hutool-json/src/main/java/cn/hutool/json/JSONBeanParser.java
Matcher (Interface)
匹配接口 @param 匹配的对象类型 @author Looly [9 implementers]
hutool-core/src/main/java/cn/hutool/core/lang/Matcher.java

Core symbols most depended-on inside this repo

get
called by 1178
hutool-core/src/main/java/cn/hutool/core/lang/ref/Ref.java
toString
called by 957
hutool-core/src/main/java/cn/hutool/core/lang/ansi/AnsiElement.java
equals
called by 954
hutool-core/src/main/java/cn/hutool/core/map/TreeEntry.java
add
called by 843
hutool-bloomFilter/src/main/java/cn/hutool/bloomfilter/bitMap/BitMap.java
put
called by 807
hutool-cache/src/main/java/cn/hutool/cache/Cache.java
put
called by 719
hutool-core/src/main/java/cn/hutool/core/map/multi/Table.java
length
called by 527
hutool-core/src/main/java/cn/hutool/core/lang/Segment.java
set
called by 500
hutool-core/src/main/java/cn/hutool/core/lang/mutable/Mutable.java

Shape

Method 13,932
Class 2,219
Interface 191
Enum 117
Function 1

Languages

Java100%
TypeScript1%

Modules by API surface

hutool-core/src/main/java/cn/hutool/core/text/CharSequenceUtil.java163 symbols
hutool-core/src/main/java/cn/hutool/core/date/DateUtil.java136 symbols
hutool-core/src/test/java/cn/hutool/core/collection/CollUtilTest.java117 symbols
hutool-core/src/main/java/cn/hutool/core/collection/CollUtil.java106 symbols
hutool-core/src/main/java/cn/hutool/core/io/FileUtil.java102 symbols
hutool-core/src/test/java/cn/hutool/core/date/DateUtilTest.java92 symbols
hutool-core/src/main/java/cn/hutool/core/date/format/FastDatePrinter.java88 symbols
hutool-core/src/test/java/cn/hutool/core/bean/BeanUtilTest.java87 symbols
hutool-core/src/test/java/cn/hutool/core/map/MapUtilTest.java76 symbols
hutool-http/src/main/java/cn/hutool/http/HttpRequest.java73 symbols
hutool-core/src/main/java/cn/hutool/core/lang/Validator.java73 symbols
hutool-db/src/main/java/cn/hutool/db/sql/StatementWrapper.java71 symbols

Dependencies from manifests, versioned

cglib:cglib
ch.ethz.ganymed:ganymed-ssh2262 · 1×
ch.qos.logback:logback-classic1.4.14 · 1×
cn.hutool:hutool-ai
cn.hutool:hutool-aop
cn.hutool:hutool-bloomFilter
cn.hutool:hutool-cache
cn.hutool:hutool-captcha
cn.hutool:hutool-core
cn.hutool:hutool-cron
cn.hutool:hutool-crypto
cn.hutool:hutool-db

Datastores touched

(mysql)Database · 1 repos
extractorDatabase · 1 repos

For agents

$ claude mcp add hutool \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact