Java中常用的util类库在Maven项目中通常以依赖的形式引入。以下是一些常用的util库及其Maven依赖。
Apache Commons Lang 3: 提供了很多工具类,如StringUtils, ArrayUtils等。
org.apache.commons commons-lang3 3.12.0 Google Guava: 提供了一系列高质量的集合工具类,并发集合,缓存等。
com.google.guava guava 30.1-jre Apache Commons Collections: 提供了集合工具类和专用集合实现。
xml
org.apache.commons commons-collections4 4.4 Apache Commons IO: 提供了IO操作的工具类。
xml
commons-io commons-io 2.8.0 Jackson: 提供了JSON, CSV等格式的处理。
xml
com.fasterxml.jackson.core jackson-databind 2.12.3 Apache Commons Text: 提供了字符串处理工具。
xml
org.apache.commons commons-text 1.9 Joda-Time: 提供了日期时间的处理。
xml
joda-time joda-time 2.10.10 Apache Commons Net: 提供了网络协议的实现。
xml
commons-net commons-net 3.8.0 SLF4J: 提供了日志的抽象层,方便切换日志实现。
xml
org.slf4j slf4j-api 1.7.30 Google Auto: 提供了Annotation Processor工具,用于代码生成。
xml
com.google.auto.service auto-service 1.0-rc6 先mark