解决方法 严重: Servlet.service() for servlet default threw exception org.hibernate.TransactionException: Transaction not successfully

来源:互联网 发布:工作进度计划软件 编辑:程序博客网 时间:2024/05/18 17:56

程序代码:

 

关键代码:return queryObject.list(); 放在了commit后面所以会出现下面的异常。

 

修改后的代码:

 

异常信息: