Mybatis批量插入数据返回主键
3.4.6版本 keyProperty="USERID" useGeneratedKeys="true"
3.5.3版本 keyProperty="list.USERID" useGeneratedKeys="true"
高版本需要加上@Param("list")中的list才可以返回
低版本则不需要加,加上无法映射
人生是一场旅途,遇到的皆是风景
3.4.6版本 keyProperty="USERID" useGeneratedKeys="true"
3.5.3版本 keyProperty="list.USERID" useGeneratedKeys="true"
高版本需要加上@Param("list")中的list才可以返回
低版本则不需要加,加上无法映射