![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Mybatis
Mybatis
泽虞生的Tap
这个作者很懒,什么都没留下…
展开
-
mybatis - 通过3种方式 批量更新
通过foreach批量更新 通过case when批量更新(100条级别使用,批量更新数据太多会适得其反) 通过ExecutorType.Batch批量更新 通过foreach批量更新 ## mysql update table set id=1,name="泽虞生" where id = 1; update table set id=2,name="泽虞生" where id = 2;...原创 2019-12-23 16:24:52 · 1385 阅读 · 0 评论 -
利用Java和XML配置文件运行MBG
利用Java和XML配置文件运行MBG 添加相应jar包:mybatis-generator-core-xxx.jar 配置xml文件:generatorConfig.xml 添加相应Java代码 generatorConfig.xml <!DOCTYPE generatorConfiguration PUBLIC "-//mybatis.org//DTD ...原创 2018-04-11 18:29:27 · 653 阅读 · 0 评论