将Lombok插件添加到IntelliJ项目 [英] Adding Lombok plugin to IntelliJ project

查看:110
本文介绍了将Lombok插件添加到IntelliJ项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在IntelliJ IDEA中将Lombok添加到我的Spring Boot项目中.到目前为止,我已经

I'm trying to add Lombok to my Spring Boot project in IntelliJ IDEA. So far, I've

  1. 设置-插件(版本0.13.16)

  1. 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项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆