今天在用hibernate的saveOrUpdate时报了这样一个错误,主键设置的是uuid自动生成。添加和编辑用的同一个页面,id用了隐藏文本域。结果更新是没问题的,但是添加就出错,原因是添加是id传到后台是id="",是个空字符串。所以就报错了
Batch update returned unexpected row count from update [0]; actual row count: 0;
最新推荐文章于 2023-08-04 10:12:19 发布