1.Lombok介绍
官网介绍:
Project Lombok is a java library that automatically plugs into your editor and build tools, spicing up your java.Never write another getter or equals method again, with one annotation your class has a fully featured builder, Automate your logging variables, and much more.
翻译是:
Lombok是一个Java库,能自动插入编辑器并构建工具,简化Java开发。通过添加注解的方式,不用再写getter或equels方法,同时可以自动化日志变量,或更多。
2.IDEA安装Lombok,进入Settings->Plugins,搜索Lombok,点击Installed即可,安装完,提示重启,就OK了。
3.添加Maven依赖及使用
3.1依赖包
org.projectlombok
lombok
1.18.4
provided