千家信息网

JAVA中常用的类库整理

发表于:2024-10-22 作者:千家信息网编辑
千家信息网最后更新 2024年10月22日,这篇文章主要介绍"JAVA中常用的类库整理",在日常操作中,相信很多人在JAVA中常用的类库整理问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答"JAVA中常用的类库整理"
千家信息网最后更新 2024年10月22日JAVA中常用的类库整理

这篇文章主要介绍"JAVA中常用的类库整理",在日常操作中,相信很多人在JAVA中常用的类库整理问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答"JAVA中常用的类库整理"的疑惑有所帮助!接下来,请跟着小编一起来学习吧!

JAVA类库整理

标签(空格分隔): 技术栈


[toc]

commons-codec

加解密功能封装 例:

    commons-codec    commons-codec    1.12
/* * MD5加密 */DigestUtils.md5Hex("123456")

commons-lang3

工具类封装 例:

    org.apache.commons    commons-lang3    3.9
public static void main(String[] args) {    System.out.println(StringUtils.isEmpty(null));    System.out.println(StringUtils.isEmpty(""));    System.out.println(ObjectUtils.anyNotNull(null, null));    System.out.println(ObjectUtils.anyNotNull(11, null));    System.out.println(RandomUtils.nextBoolean());    System.out.println(RandomUtils.nextBoolean());    System.out.println(SystemUtils.JAVA_HOME);}

commons-io

IO工具封装(FileUtils、IOUtils等) 例:

    commons-io    commons-io    2.6

commons-collections4

集合功能封装 例:

        org.apache.commons        commons-collections4        4.0

commons-pool

    commons-pool    commons-pool    1.6

commons-beanutils

Apache开源组织提供的用于操作JAVA BEAN的工具包

    commons-beanutils    commons-beanutils    1.9.3

pagehelper

MyBatis 分页插件

  com.github.pagehelper  pagehelper  4.1.6

java-jwt

    com.auth0    java-jwt    3.8.1

reflections

    org.reflections    reflections    0.9.10

hutool-all

    cn.hutool    hutool-all    4.6.1

hibernate-validator

    org.hibernate    hibernate-validator    6.0.17.Final

metrics 监控

    io.dropwizard.metrics    metrics-core    ${metrics.version}

Lombok

Lombok能以简单的注解形式来简化java代码,提高开发人员的开发效率

    org.projectlombok    lombok    1.16.20    provided

注解:

@Data

Spring-Boot-Starter-Slf4j

减少编写日志的组件

    wiki.xsx    spring-boot-starter-slf4j    RELEASE

到此,关于"JAVA中常用的类库整理"的学习就结束了,希望能够解决大家的疑惑。理论与实践的搭配能更好的帮助大家学习,快去试试吧!若想继续学习更多相关知识,请继续关注网站,小编会继续努力为大家带来更多实用的文章!

0