org.hibernate.StaleStateException:Unexpected row count:0 expected:1是什么错误

来源:学生作业帮助网 编辑:六六作业网 时间:2024/07/13 11:10:38
org.hibernate.StaleStateException:Unexpectedrowcount:0expected:1是什么错误org.hibernate.StaleStateExcepti

org.hibernate.StaleStateException:Unexpected row count:0 expected:1是什么错误
org.hibernate.StaleStateException:Unexpected row count:0 expected:1是什么错误

org.hibernate.StaleStateException:Unexpected row count:0 expected:1是什么错误
用jdbctemplate,如果查出来的值为空,就会报这个错.推荐直接用jdbc