Lombok : constructor is undefined之问题解决

Lombok : constructor is undefined之问题解决,第1张

Lombok : constructor is undefined之问题解决 Lombok : constructor is undefined之问题解决

在eclipse-jee中编写spring程序时用到了lombok.Data标记,在使用bean时报错构造函数不存在。查了很多资料,发现很多都不对头。

Spring MVC and the @Data annotation这里的一条回复提醒了我。

I had to add lombok to the Eclipse plugins list like explained on that link 

– Jean-Pierre Mena

 Jan 29 at 10:30 

从Eclipse, Spring Tool Suite, (Red Hat) JBoss Developer Studio, MyEclipse看到文档后在eclipse中安装lombok插件,clean项目后报错消失。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://www.54852.com/zaji/5687122.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-12-17
下一篇2022-12-17

发表评论

登录后才能评论

评论列表(0条)

    保存