GenericJDBCException: could not execute statement 错误解决

时间:2021-08-26 02:10:47

GenericJDBCException: could not execute statement 错误解决

 

 "message":"could not execute statement; nested exception is org.hibernate.exception.GenericJDBCException: could not execute statement","status":"500"

1.数据库表主键未设置自增

2.数据库表类型与代码中的数据类型不相同