摘要: 当我们的pojo使用@Data注解时,@Data默认包含的是:@EqualsAndHashCode(callSuper = false),但是我们的pojo有继承父类,我们可能需要重新定义这个注解为:@EqualsAndHashCode(callSuper = true) 两者区别: @Equals 阅读全文
posted @ 2022-05-25 10:20 intTom 阅读(207) 评论(0) 推荐(0) 编辑