1.alter table tb_goods_detail auto_increment = 6;修改mysql自增长ID重新开始
2.接口调整的方法:
3.mysql使用自增长ID,获取ID
设置useGeneratedKeys="true" keyProperty="id"
useGeneratedKeys="true"把新增加的主键赋值到自己定义的keyProperty(id)中,
useGeneratedKeys 取值范围true|false 默认值是:false。 含义:设置是否使用JDBC的getGenereatedKeys方法获取主键并赋值到keyProperty设置的领域模型属性中。