org.hibernate.HibernateException: No CurrentSessionContext configured!
org.hibernate.HibernateException: No CurrentSessionContext configured!
解决方案:
在集成Hibernate的环境下,在hibernate.cfg.xml中session-factory段可能没有加下面配置,把下面的代码加入进去就可以了:
thread...
原创
2015-10-14 16:53:58 ·
289 阅读 ·
0 评论