摘要: 需求:使用MyBatis往MySQL数据库中插入一条记录后,需要返回该条记录的自增主键值。 方法:在mapper中指定keyProperty属性,示例如下: <insert id="addCoupon" parameterType="com.datebook.entity.Coupon" useGe 阅读全文
posted @ 2017-09-07 17:49 qwer78 阅读(76) 评论(0) 推荐(0)