mybates专题

spring mybates 自增字段返回id

1.mapper.xml设置 useGeneratedKeys="true" keyProperty="groupid" 2.取id