需要注意的是keyProperty="problem_id" 这个值要对应映射文件中的参数,执行insert语句后,可从对象中直接get到该值。 useGeneratedKeys="true" keyProperty="problem_id" 相关文章: