JPA报错(could not execute statement)

错误提示

could not execute statement; nested exception is org.hibernate.exception.GenericJDBCException: could not execute statement

解决方法

实体类对应的数据表Id不是自增字段,所以去表里面修改一下


11.png

你可能感兴趣的:(JPA报错(could not execute statement))