Mybatis批量插入数据返回主键

3.4.6版本 keyProperty="USERID" useGeneratedKeys="true"

3.5.3版本 keyProperty="list.USERID" useGeneratedKeys="true"

高版本需要加上@Param("list")中的list才可以返回

低版本则不需要加,加上无法映射

posted @ 2024-04-22 09:59  吃个大瓜  阅读(221)  评论(0)    收藏  举报