mybatis generator的mapper 批量
时间: 2023-08-08 07:12:20 浏览: 117
mybatis generator的mapper批量插入方法可以通过手动在mapper接口中添加批量插入的方法来实现。然后再手工添加一个批量插入的动态SQL与之关联。这样可以在项目开发中减少和数据库之间的通信,频繁占用数据库链接资源。具体的使用方法可以参考\[2\]中提供的链接。
#### 引用[.reference_title]
- *1* [MyBatis Generator 自动生成工具报错Cannot instantiate object of type tk.mybatis.mapper.generator....](https://blog.csdn.net/waiting971118/article/details/122230017)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [Mybatis Generator源码:批量插入mapper接口自动实现](https://blog.csdn.net/supzhili/article/details/102650573)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文