org.hibernate.exception.GenericJDBCException: could not insert: [com.test.pojo.TblUser]
该异常可能得原因如下:
1、插入的数据量大于数据库中指定字段的长度。
2、数据库中表的主键没有设置为 auto_incr(自动增长)。
org.hibernate.exception.GenericJDBCException: could not insert: [com.test.pojo.TblUser]
该异常可能得原因如下:
1、插入的数据量大于数据库中指定字段的长度。
2、数据库中表的主键没有设置为 auto_incr(自动增长)。