Mybatis 执行批量插入,能返回数据库主键列表吗?

答案解析

支持,需配置 useGeneratedKeys=true 和 keyProperty 属性,数据库驱动也要支持批量返回主键。