出错原因很简单:数据库服务没开,自然就打不开Session了。
相关文章
- hibernate延迟加载org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: com.javakc.hibernate.onetomany.entity.DeptEntity.emp, could not initialize proxy - no Session
- 解决Hibernate:could not initialize proxy - no Session(申明:来源于网络)
- org.hibernate.exception.GenericJDBCException: Could not open connection
- Could not open Hibernate Session for transaction;
- Hibernate Open Session In View模式【转】
- org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session