NutzCN Logo
问答 使用 lombok 免get set 的时候 bean如果继承了某个基类 会报警告
发布于 2901天前 作者 SniperZj 8464 次浏览 复制 上一个帖子 下一个帖子
标签:

Generating equals/hashCode implementation but without a call to superclass, even though this class does not extend java.lang.Object. If this is intentional, add '@EqualsAndHashCode(callSuper=false)' to your type.

2 回复

按提示, 加上这个就好了

@EqualsAndHashCode(callSuper=true) // true or false 都行
添加回复
请先登陆
回到顶部