错误信息:attempt to create saveOrUpdate event with null entity

错误信息:attempt to create saveOrUpdate event with null entity;

这个错误网上答案比较多,我也不多说了.

我遇到的问题是在前台传过来的参数是null对象,后台hibernate又去保存这个对象,就出现这个错误,添加个判断就好.

posted @ 2015-07-09 13:48  我的代码之路  阅读(1254)  评论(0)    收藏  举报