mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
change method name
This commit is contained in:
54
README.md
54
README.md
@@ -51,6 +51,7 @@
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
## 📚简介
|
||||
|
||||
Hutool是一个小而全的Java工具类库,通过静态方法封装,降低相关API的学习成本,提高工作效率,使Java拥有函数式语言般的优雅,让Java语言也可以“甜甜的”。
|
||||
|
||||
Hutool中的工具方法来自每个用户的精雕细琢,它涵盖了Java开发底层代码中的方方面面,它既是大型项目开发中解决小问题的利器,也是小型项目中的效率担当;
|
||||
@@ -68,42 +69,36 @@ Hutool的目标是使用一个工具方法代替一段复杂代码,从而最
|
||||
以计算MD5为例:
|
||||
|
||||
- 👴【以前】打开搜索引擎 -> 搜“Java MD5加密” -> 打开某篇博客-> 复制粘贴 -> 改改好用
|
||||
- 👦【现在】引入Hutool -> SecureUtil.md5()
|
||||
- 👦【现在】引入Hutool -> SecureUtil.md5()
|
||||
|
||||
Hutool的存在就是为了减少代码搜索成本,避免网络上参差不齐的代码出现导致的bug。
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
## 🛠️包含组件
|
||||
|
||||
一个Java基础工具类,对文件、流、加密解密、转码、正则、线程、XML等JDK方法进行封装,组成各种Util工具类,同时提供以下组件:
|
||||
|
||||
| 模块 | 介绍 |
|
||||
| -------------------|---------------------------------------------------------------------------------- |
|
||||
| hutool-aop | JDK动态代理封装,提供非IOC下的切面支持 |
|
||||
| hutool-bloomFilter | 布隆过滤,提供一些Hash算法的布隆过滤 |
|
||||
| hutool-cache | 简单缓存实现 |
|
||||
| hutool-core | 核心,包括Bean操作、日期、各种Util等 |
|
||||
| hutool-cron | 定时任务模块,提供类Crontab表达式的定时任务 |
|
||||
| hutool-crypto | 加密解密模块,提供对称、非对称和摘要算法封装 |
|
||||
| hutool-db | JDBC封装后的数据操作,基于ActiveRecord思想 |
|
||||
| hutool-dfa | 基于DFA模型的多关键字查找 |
|
||||
| hutool-extra | 扩展模块,对第三方封装(模板引擎、邮件、Servlet、二维码、Emoji、FTP、分词等) |
|
||||
| hutool-http | 基于HttpUrlConnection的Http客户端封装 |
|
||||
| hutool-log | 自动识别日志实现的日志门面 |
|
||||
| hutool-script | 脚本执行封装,例如Javascript |
|
||||
| hutool-setting | 功能更强大的Setting配置文件和Properties封装 |
|
||||
| hutool-system | 系统参数调用封装(JVM信息等) |
|
||||
| hutool-json | JSON实现 |
|
||||
| hutool-captcha | 图片验证码实现 |
|
||||
| hutool-poi | 针对POI中Excel和Word的封装 |
|
||||
| hutool-socket | 基于Java的NIO和AIO的Socket封装 |
|
||||
| hutool-jwt | JSON Web Token (JWT)封装实现 |
|
||||
| 模块 | 介绍 |
|
||||
|----------------|------------------------------------------------|
|
||||
| hutool-core | 核心,包括Bean操作、日期、各种Util等 |
|
||||
| hutool-cron | 定时任务模块,提供类Crontab表达式的定时任务 |
|
||||
| hutool-crypto | 加密解密模块,提供对称、非对称和摘要算法封装 |
|
||||
| hutool-db | JDBC封装后的数据操作,基于ActiveRecord思想 |
|
||||
| hutool-extra | 扩展模块,对第三方封装(模板引擎、邮件、Servlet、二维码、Emoji、FTP、分词等) |
|
||||
| hutool-http | 基于HttpUrlConnection的Http客户端封装 |
|
||||
| hutool-log | 自动识别日志实现的日志门面 |
|
||||
| hutool-setting | 功能更强大的Setting配置文件和Properties封装 |
|
||||
| hutool-json | JSON实现 |
|
||||
| hutool-poi | 针对POI中Excel和Word的封装 |
|
||||
| hutool-socket | 基于Java的NIO和AIO的Socket封装 |
|
||||
| hutool-swing | Swing和JWT相关封装 |
|
||||
|
||||
可以根据需求对每个模块单独引入,也可以通过引入`hutool-all`方式引入所有模块。
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
## 📝文档
|
||||
## 📝文档
|
||||
|
||||
[📘中文文档](https://www.hutool.cn/docs/)
|
||||
|
||||
@@ -138,17 +133,20 @@ Hutool的存在就是为了减少代码搜索成本,避免网络上参差不
|
||||
## 📦安装
|
||||
|
||||
### 🍊Maven
|
||||
|
||||
在项目的pom.xml的dependencies中加入以下内容:
|
||||
|
||||
```xml
|
||||
|
||||
<dependency>
|
||||
<groupId>cn.hutool</groupId>
|
||||
<artifactId>hutool-all</artifactId>
|
||||
<version>6.0.0.M1</version>
|
||||
<groupId>cn.hutool</groupId>
|
||||
<artifactId>hutool-all</artifactId>
|
||||
<version>6.0.0.M1</version>
|
||||
</dependency>
|
||||
```
|
||||
|
||||
### 🍐Gradle
|
||||
|
||||
```
|
||||
implementation 'cn.hutool:hutool-all:6.0.0.M1'
|
||||
```
|
||||
@@ -165,7 +163,8 @@ implementation 'cn.hutool:hutool-all:6.0.0.M1'
|
||||
|
||||
### 🚽编译安装
|
||||
|
||||
访问Hutool的Gitee主页:[https://gitee.com/dromara/hutool](https://gitee.com/dromara/hutool) 下载整个项目源码(v5-master或v5-dev分支都可)然后进入Hutool项目目录执行:
|
||||
访问Hutool的Gitee主页:[https://gitee.com/dromara/hutool](https://gitee.com/dromara/hutool)
|
||||
下载整个项目源码(v5-master或v5-dev分支都可)然后进入Hutool项目目录执行:
|
||||
|
||||
```sh
|
||||
./hutool.sh install
|
||||
@@ -193,7 +192,6 @@ Hutool的源码分为两个分支,功能如下:
|
||||
- [Gitee issue](https://gitee.com/dromara/hutool/issues)
|
||||
- [Github issue](https://github.com/dromara/hutool/issues)
|
||||
|
||||
|
||||
### 🧬贡献代码的步骤
|
||||
|
||||
1. 在Gitee或者Github上fork项目到自己的repo
|
||||
|
Reference in New Issue
Block a user