nested exception is org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
batch:批量
unexpected:意想不到
row:行
actual:真实所在
expected:预期
出错原因:使用Hibernate的update方法时,主键为空
解决:看实体类中id是否配置了注解
转载请注明原文地址: https://www.6miu.com/read-1100069.html