项目运行的时候,报了org.hibernate.AssertionFailure: scrollable result sets are not enabled这个错误,困扰了我很久,后来终于在Hibernate社区中找到了解决方法。
开始以为是驱动包不支持回滚呢,后来想想不可能啊。然后继续在谷歌查资料,终于找到了答案。
原来是要在hibernate的配置文件中配置:
hibernate.jdbc.use_scrollable_resultset=true
这个问题我就是这样解决的,希望能给大家提供一些帮助
参考地址:https://forum.hibernate.org/viewtopic.php?f=1&t=987002