摘要: 方法1:根据useGeneratedKeys获取返回值,部分数据库不支持 修改mybatis xml useGeneratedKeys="true" :设置是否使用JDBC的getGenereatedKeys方法获取主键并赋值到keyProperty设置的领域模型属性中。(适用于mysql、sqls 阅读全文
posted @ 2018-11-03 11:28 客舍青 阅读(385) 评论(0) 推荐(0)