龙目岛补充说,但是在Intellij IDEA中没有认出吸气剂和制定者 [英] Lombok added but getters and setters not recognized in Intellij IDEA

查看:181
本文介绍了龙目岛补充说,但是在Intellij IDEA中没有认出吸气剂和制定者的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在ubuntu上使用IntelliJ IDEA。我将lombok.jar添加到我的项目中并为IDEA安装了Lombok插件。我可以访问注释,但不会生成getter和setter。如果我尝试访问不存在的getter或setter方法,我会得到相同的错误。我能错过什么?

I am using IntelliJ IDEA on ubuntu. I added lombok.jar into my project and installed the Lombok plugin for IDEA. I have access to the annotations but the getters and setters aren't generated. I get the same errors I would get if I tried accessing a getter or setter method that doesn't exist. What could I be missing?

推荐答案

我通过勾选设置 - >编译器 - >中的启用注释处理复选框来修复它注释处理器。

I fixed it by ticking the "Enable annotation processing" checkbox in Settings->Compiler->Annotation Processors.

这篇关于龙目岛补充说,但是在Intellij IDEA中没有认出吸气剂和制定者的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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