initializationError [Runner:JUnit 4]:报错问题

背景:使用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);

相关文章:

  • 2021-09-20
  • 2021-09-11
  • 2021-09-29
  • 2021-05-27
  • 2021-04-22
  • 2021-03-31
  • 2021-11-28
猜你喜欢
  • 2021-05-05
  • 2021-05-14
  • 2021-11-23
  • 2021-12-03
  • 2021-05-17
相关资源
相似解决方案