Lombok intellij想法重复getter / setter方法和构造函数生成 [英] Lombok intellij idea duplicate getter/setter methods and constructor generated

查看:503
本文介绍了Lombok intellij想法重复getter / setter方法和构造函数生成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在intellij idea 2017.1中有一个spring-boot项目,安装了lombok插件并启用了注释处理器。当我使用构建>重建项目构建项目时,我成功完成了编译。但是在编辑器中,由于方法调用模糊,它仍然会在调用getter方法时显示编译错误:在类的结构中有重复的getter / setter方法。

I have a spring-boot project in intellij idea 2017.1 with lombok plugin installed and annotation processor enabled. When I build the project using Build > Rebuild Project I got Compilation completed successfully. But In the Editor it stills show a compilation error on calling a getter method because of an ambiguous method call : in the structure of the class there are duplicate getter/setter methods.

这是我的班级:

< img src =https://i.stack.imgur.com/F7yV1.pngalt =在此处输入图像说明>

推荐答案

Intellij 2018默认启用Hrisey插件。禁用插件可以解决问题。

Intellij 2018 enabled "Hrisey Plugin" by default. Disabling the plugin fixes the problem.

这篇关于Lombok intellij想法重复getter / setter方法和构造函数生成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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