Cannot invoke "Object.hashCode()" because "key" is null
时间: 2023-11-23 07:07:02 浏览: 543
"Cannot invoke "Object.hashCode()" because "key" is null"这个错误通常出现在Mybatis Plus版本3.2.2。这个错误的原因是在使用Mybatis Plus的某些功能时,传入的键值为null,无法调用hashCode()方法导致的。这个问题的解决方法是确保传入的键值不为null。你可以在使用Mybatis Plus的相关功能时,检查键值是否为空,并进行合适的处理,例如给键值设定默认值或者进行判空处理。这样可以避免出现"Cannot invoke "Object.hashCode()" because "key" is null"的错误。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [mybatisplus 3.2.2报错](https://blog.csdn.net/qq_37736994/article/details/128404914)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [jeecg-boot 空指针异常](https://blog.csdn.net/ly1316221439/article/details/122146439)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文