@EqualsAndHashCode(callSuper=false) 导入什么包
时间: 2023-10-26 15:58:28 浏览: 88
java中lombok的@Data引发问题详解
5星 · 资源好评率100%
@EqualsAndHashCode(callSuper=false)是Lombok注解之一,用于生成equals和hashCode方法,并且指定在生成equals和hashCode方法时,不考虑继承关系(不调用父类的equals和hashCode方法)。这个注解需要导入lombok包。在Java类中添加这个注解之后,编译时会自动生成equals和hashCode方法,无需手动编写。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [简化开发|Lombok神器带你消除冗余代码](https://blog.csdn.net/weixin_43719843/article/details/109590350)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [excel的导入导出](https://blog.csdn.net/weixin_41925461/article/details/120353610)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [SpringBoot实现Excel导入导出,好用到爆,POI可以扔掉了](https://blog.csdn.net/m0_63213253/article/details/120934918)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文