首页 > 代码库 > Mybaits insert之后返回对象带ID

Mybaits insert之后返回对象带ID

  useGeneratedKeys="true" //ID自增长
  keyProperty="id" //返回主键ID

 <insert id="insertSelective" parameterType="net.joystart.activity.entity.Activities" useGeneratedKeys="true"
  keyProperty="id">

</insert>

Mybaits insert之后返回对象带ID