摘要: 原因:使用Mybatis往Mysql数据库插入一条数据并返回该条数据的自增主键值 解决方法: 在mapper中指定keyProperty属性 <insert id="insertAndGetId" useGeneratedKeys="true" keyProperty="userId" parame 阅读全文
posted @ 2021-09-01 10:19 假装空白 阅读(603) 评论(0) 推荐(0)