这里会显示出您选择的修订版和当前版本之间的差别。
分享:技术:java:lombok [2017/10/18 12:25] gxx 创建 |
分享:技术:java:lombok [2017/10/18 12:25] (当前版本) gxx |
||
---|---|---|---|
行 13: | 行 13: | ||
虽然有人可能会说IDE里面都自带自动生成这些方法的功能,但是使用lombok会使你的代码看起来更加简洁,写起来也更加方便。 | 虽然有人可能会说IDE里面都自带自动生成这些方法的功能,但是使用lombok会使你的代码看起来更加简洁,写起来也更加方便。 | ||
===== 安装 ===== | ===== 安装 ===== | ||
+ | <code> | ||
<dependencies> | <dependencies> | ||
<dependency> | <dependency> | ||
行 20: | 行 21: | ||
</dependency> | </dependency> | ||
</dependencies> | </dependencies> | ||
+ | </code> | ||
===== 插件 ===== | ===== 插件 ===== | ||
Intellij idea开发的话需要安装Lombok plugin,同时设置 Setting -> Compiler -> Annotation Processors -> Enable annotation processing勾选。 | Intellij idea开发的话需要安装Lombok plugin,同时设置 Setting -> Compiler -> Annotation Processors -> Enable annotation processing勾选。 |