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

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/12 12:35:47
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是什么错误

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