1,自定义类转入集合,必须重写equals和hashcode方法, 或者使用在使用@Data时同时加上@EqualsAndHashCode(callSuper=true)注解。
posted on 2017-10-17 22:57 Kooing 阅读(89) 评论(0) 编辑 收藏 举报