![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring Boot
文章平均质量分 59
愤怒的阿木木
写个bug
展开
-
SpringBoot+ThreadPoolTaskExecutor+mybatis-plus 多线程批量插入大数量级数据
方法一、 saveBatch()首先mybatis-plus中默认提供了一个批量保存数据到数据库的方法saveBatch(),批处理实质上还是一条条的sql去执行,但是它做了预编译优化,只编译一次sql,但是还是一个for循环,一条执行一次,数据量多的时候,效率也不见得很好。方法二、foreach拼sql这个也挺简单,就是,写法网上百度一大把,不做赘述。我这里是使用了mybatis-plus注入自定义的SQL,方法参考我使用的数据库是Oracle,所以sql有一点点不同。原创 2022-09-30 09:58:12 · 5998 阅读 · 6 评论 -
Mybatis-plus如何注入自定义的SQL(foreach批量插入ORACLE数据库)
Mybatis-plus如何注入自定义的SQL(foreach批量插入数据)原创 2022-09-29 18:00:26 · 1450 阅读 · 0 评论 -
Error resolving template [index], template might not exist or might not be accessible by...
Error resolving template [index], template might not exist or might not be accessible by...原创 2022-08-31 17:21:59 · 344 阅读 · 0 评论