3

mybatis batch 插入

 3 years ago
source link: https://www.v2ex.com/t/792786
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  Java

mybatis batch 插入

  cmxzj · 1 小时 54 分钟前 · 88 次点击

使用 mybatis executortype.batch 每批插入 1000 条数据,遇到报错应该怎样日志打印出来报错的那条数据呢,LOG 开的是 INFO,目前想到的是 try catch 插入的方法打印报错的整个 1000 条数据。。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK