mybits自增返回主键问题

获取自增ID解决办法: 方法:在mapper中指定keyProperty属性,示例以下:  数据库 <insert id="insertAndGetId" useGeneratedKeys="true" keyProperty="userId" parameterType="com.chenzhou.mybatis.User"> insert into user(userName,pa
相关文章
相关标签/搜索