背景:使用mybatis注解配置SQL映射器
原因:注解配置SQL映射器时,SQL语句写错了
//@Insert("insert int t_student values(null,#{name},#{age})")
@Insert("insert into t_student values(null,#{name},#{age})")
public int insertStudent(Student student);
背景:使用mybatis注解配置SQL映射器
原因:注解配置SQL映射器时,SQL语句写错了
//@Insert("insert int t_student values(null,#{name},#{age})")
@Insert("insert into t_student values(null,#{name},#{age})")
public int insertStudent(Student student);