Appearance
简介
基于Apache Commons、jasypt、twelvemonkeys、poi, poi-tl等工具库,包含了基础、文件压缩、加解密、地理信息、图像、IO、PDF、 OFFICE、Jakarta参数校验用途的工具类
使用要求
>= JDK 17
模块列表
| 模块 | 介绍 |
|---|---|
| compress | 文件压缩工具类库(基于commons-compress) |
| crypto | 加解密工具类库(基于jasypt) |
| geo | GEO工具类库 |
| image | 图片工具类库(基于metadata-extractor、twelvemonkeys和javax Image IO) |
| imageio | ImageIO解析库,集成了各个库的ImageIO包 |
| io | IO工具类库(基于tika、commons-io和commons-crypto) |
| lang | 基础工具类库,部分代码来源于Spring Framework、Mybatis plus |
| PDF工具库(基于pdfbox) | |
| poi | POI工具库(基于poi 和 poi-tl) |
| validation | 参数校验库(基于jakarta-validation) |
引入
全部引入
不推荐这种方式,如果你想图省事当我没说
xml
<parent>
<groupId>io.github.pangju666.commons</groupId>
<artifactId>commons-all</artifactId>
<version>2.0.0</version>
<relativePath/>
</parent>按需引入
通过导入bom来实现按需导入自己需要的模块:
xml
<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.github.pangju666.commons</groupId>
<artifactId>commons-bom</artifactId>
<version>2.0.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>io.github.pangju666.commons</groupId>
<artifactId>commons-lang</artifactId>
</dependency>
</dependencies>