org.hibernate.HibernateException: No CurrentSessionContext configured!
解决方案:
在集成Hibernate的环境下,在hibernate.cfg.xml中session-factory段可能没有加下面配置,把下面的代码加入进去就可以了:
<property name="current_session_context_class">thread</property>
org.hibernate.HibernateException: No CurrentSessionContext configured!
猜你喜欢
转载自847104446.iteye.com/blog/2249148
今日推荐
周排行