进行用户资料更改时候遇到了一个内部错误:
org.springframework.orm.hibernate3.HibernateOptimisticLockingFailureException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1; nested exception is org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
JSP页面的form代码:
<form method="post" action="UpdataUserAction?method=update" name="form1">
action包的方法名字:
public String update()
将方法名改为updataUser(),就不报错了
应该是和框架内部方法重名,修改就好了