由于執行兩次excute,所以在做刪除操作的時候會出現
Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1表示找不到要刪除的
在控制臺出現的語句是
Hibernate: delete from user where id=?
Hibernate: delete from user where id=?
兩個一樣的
在網上找了好久也沒有發現是什么原因,有些道友說是將struts的form標簽也當成action被攔截了一次,但是我的只是一個連接action的草連接,后來無意中看到一位道友說他遇到瀏覽器不兼容的問題,我就換了360(前面用的firefox),ko了。