<insert id="addBlog" parameterType="Blog" keyProperty="id" useGeneratedKeys="true">
INSERT INTO t_blog VALUES(null,#{title},#{summary},now(),0,0,#{content},#{keyWord},#{blogType.id})
</insert>
keyProperty="id"插入对象的主键属性
useGeneratedKeys="true"设置是否使用JDBC的getGenereatedKeys方法获取主键并赋值到keyProperty设置的领域模型属性中