could not execute statement; nested exception is org.hibernate.exception.generic
无法执行语句;嵌套异常是org . hibernate . exception . generic
在写Springboot整合JPA的时候报了一个错
org.springframework.orm.jpa.JpaSystemException: could not execute statement; nested exception is org.hibernate.exception.GenericJDBCException: could not execute statement
Student实体类已经全部标明,包括主键,为什么会出现这个问题呢,
解决方法
答案就是:table表格没有设置主键,打开student表,设置ID作为主键并且自动增长
叮~Debug小能手