<!-- MySQL自动生成主键-->
<insert id="insert" useGeneratedKeys="true" keyProperty="id">
INSERT INTO t_car(id,name) VALUES (#{id},#{name})
</insert>
<!-- MySQL自动生成主键-->
<insert id="insert" useGeneratedKeys="true" keyProperty="id">
INSERT INTO t_car(id,name) VALUES (#{id},#{name})
</insert>