Hibernate:No CurrentSessionContext configured
org.hibernate.HibernateException: No CurrentSessionContext configured
解决如下:
在集成Hibernate的环境下(例如Jboss),在hibernate.cfg.xml中session-factory段加入:
jta
在不集成Hibernate的环境下(例如使用JDBC的独立应用程序),在hi
转载
2013-01-15 15:57:39 ·
439 阅读 ·
0 评论