原文:解决Exception:Could not open Hibernate Session for transaction; nested exception is java.lang.NoClassDefFoundError: org/hibernate/engine/transaction/spi/TransactionContext

原因是配置文件中 用的是hibernate 解决方法: :将换成hibernate core . . .Final.jar换成hibernate core . . .Final.jar 自己运行能够成功解决问题 :class org.springframework.orm.hibernate .HibernateTransactionManager 没有解决bug,但理论上应该是可以的 ...

2018-03-28 11:30 0 3627 推荐指数:

查看详情

Hibernage错误:Could not open Hibernate Session for transaction

今天客户发来的错误,是SSH框架做的项目,是用户在登陆时候出现的错误,但刷新之后就没问题。 提示错误:Could not open Hibernate Session for transaction。大概意思就是数据库连接超时。 解决方法如下: 在spring的配置文件中添加如下配置 ...

Wed May 09 17:38:00 CST 2018 0 923
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM