mybatisplus的save方法空指针
时间: 2023-08-27 15:14:30 浏览: 274
在调用Mybatis-plus接口的saveBatch方法时,如果抛出空指针异常,可能是由于传入的实体类有问题导致找不到TableInfo信息。具体来说,异常是由TableInfoHelper的table方法抛出的,该方法通过传入的Class从TableInfoHelper获取TableInfo对象。如果TableInfo对象为空,就会抛出空指针异常。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [解决Mybatis-Plus抛出java.lang.NullPointerException异常](https://blog.csdn.net/qq_41679031/article/details/105190398)[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^chatsearchT3_1"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文