1、IDEA 安装了 lombok 插件,具体安装方法如下:File => Settings => Plugins => Marketplace。在 Marketplace 中搜索 lombok 并安装,安装成功后 lombok 会显示在 installed 标签下
2、启用了 Annotation processing,启用方法:File => Settings => Build, Execution, Deployment => Compiler => Annotation Processors => Enable annotation processing(如图)