Mybatis中,当插入数据后,返回最新主键id(注解方式)

@Options(useGeneratedKeys = true, keyProperty = "id")

原文地址:https://www.cnblogs.com/wangchengb/p/10426522.html