1,自定义类转入集合,必须重写equals和hashcode方法, 或者使用在使用@Data时同时加上@EqualsAndHashCode(callSuper=true)注解。
转载于:https://www.cnblogs.com/vhyc/p/7684476.html
1,自定义类转入集合,必须重写equals和hashcode方法, 或者使用在使用@Data时同时加上@EqualsAndHashCode(callSuper=true)注解。
转载于:https://www.cnblogs.com/vhyc/p/7684476.html