作用:使javaBean 简化

1、java库

2、插件

3、构建工具

参考链接(基本不用,比较有争议)

https://www.jianshu.com/p/2543c71a8e45

1、在IDEA中安装Lombok 插件

2、maven lombok jar包

 

在pojo javaBean 的类前注解

@Date: 无参构造, get, set, tostring, hashcode, equals

@AllArgsConstructor:生成全参构造器

 

使用下面的足以

@Date

@AllArgsConstructor

@NoArgsConstructor

 

pulic class{

}

 

相关文章:

  • 2021-08-16
  • 2022-12-23
  • 2021-08-19
  • 2021-08-18
  • 2021-09-23
  • 2022-01-15
猜你喜欢
  • 2022-01-11
  • 2022-12-23
  • 2022-12-23
  • 2022-03-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案