報錯:[ERROR] AbstractBatcher Exception executing batch:?
org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
原因:視具體情況而定,我這邊是代碼被修改過,操作數據的同時更新另一張表。而我創建數據的時候代碼還未修改,
而我們現在要更新的時候hibernate根據主鍵要去更新另外一張表里面的一條數據,而那條數據不存在,因此導致報錯。