mybatis 获取自增id memory_xy_zz 2019-01-12 474 阅读1分钟 在xml文件中的insertSelective添加 useGeneratedKeys="true" keyProperty="id" authGroupMapper.insertSelective(authGroup); Integer recordId=authGroup.getId();/获取主键id