1. @Data注解 (1)自动生成boolean equals(final Object o)、int hashCode()方法,但是equals、hashCode方法仅使用当前类声明的属性,不使用父类的属性 参考:Lombok的@Data生成的hashCode和equals方法坑