進行用戶資料更改時候遇到了一個內部錯誤:
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(),就不報錯了
應該是和框架內部方法重名,修改就好了