mybatis中insert操作获取id的操作

来源:互联网 发布:天下3用数据流量玩 编辑:程序博客网 时间:2024/06/05 08:46
<insert id="insertSelective" parameterType="com.Demo" useGeneratedKeys="true"          keyProperty="id">

前提 : 操作的表的主键是自增的。

0 0