MyBatis 注解版(五)Spring boot 注解系列 插入对象返回 id

public interface StudentMapper { @Insert("insert into student(name,credit_hour) value(#{name},#{creditHour})") @Options(useGeneratedKeys = true,keyProperty = "id",keyColumn = "id")//加入该注解能够保持对
相关文章
相关标签/搜索