springboot jpa 设置批量更新查询

一. 在pom.xml文件中配置批量插入设置:

 

 二.需要在设置数据库链接时设置支持批量查询 ( 在连接时添加 rewriteBatchedStatements=TRUE)

 

posted @ 2022-04-20 14:02  逆袭的小鱼  阅读(804)  评论(0编辑  收藏  举报