首页 > 技术文章 > mybatis插入数据后返回对象id

tygtyg 2019-02-28 10:02 原文

1.插入的为对象,成功插入后,会返回到指定的字段id中,@Options(useGeneratedKeys=true,keyColumn="id")。

推荐阅读