问题描述
我正在尝试在IntelliJ IDEA中将Lombok添加到我的Spring Boot项目中.到目前为止,我已经
I'm trying to add Lombok to my Spring Boot project in IntelliJ IDEA. So far, I've
-
在设置-插件(版本0.13.16)
added the plugin under Settings - Plugins (version 0.13.16)
在我的Gradle依赖项中添加了compile('org.projectlombok:lombok')
added compile('org.projectlombok:lombok')
to my Gradle dependencies
启用注释处理
它仍然无法识别Lombok导入或注释.
It still doesn't recognize either the Lombok import or the annotations.
我想念什么?
已解决:
我必须在Gradle文件上运行更新.
I had to run an update on my Gradle file.
推荐答案
您需要在 IntelliJ IDEA
You need to Enable Annotation Processing on IntelliJ IDEA
> Settings > Build, Execution, Deployment > Compiler > Annotation Processors
> Settings > Build, Execution, Deployment > Compiler > Annotation Processors
这篇关于将Lombok插件添加到IntelliJ项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!