org.hibernate.StaleStateException Batch update returned unexpected......

xiaoxiao2022-06-11  29

org.hibernate.StaleStateException Batch update returned unexpected row count from update [0]; actual row count 0; expected 1 1.忘了在页面表单中设置要[color=red]修改[/color]的信息的id值: <input type="hidden" name="id" value="<%=vo.getId()>">(id自只增长的) 2.做删除功能时,传的id参数一定要和ActionForm xxxform中字段相同,尽管xxxform中只封装了[color=red]id(其他值为空)[/color]值,例如: <a href="aaa.do?method=delete&[color=red]id[/color]=<%=vo.getId()%>">删除</a> 相关资源:Java 面经手册·小傅哥(公众号:bugstack虫洞栈).pdf
转载请注明原文地址: https://www.6miu.com/read-4932123.html

最新回复(0)