hibernate异常:Could not execute JDBC batch update错误原因及处理

用hibernate做系统的时候,出现了Could not execute JDBC batch update错误,已解决

我的解决方案:

1.将报错字段 ,设置为可为空

或者

2.在你的sql语句中必须给这个字段传个值

 

猜你喜欢

转载自47585351.iteye.com/blog/2312780