实体类中加入
@Data
后编译出现警告
java: 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.
解决方法:
在实体类中加入
@EqualsAndHashCode(callSuper=false)