解决No CurrentSessionContext configured!错误
只需在hibernate.cfg.xml的
<session-factory>
.....
</session-factory>中加入
<property name="hibernate.current_session_context_class">thread</property>
即可。
发布时间: 2012-09-21 15:47:26 作者: rapoo
解决No CurrentSessionContext configured!错误
只需在hibernate.cfg.xml的
<session-factory>
.....
</session-factory>中加入
<property name="hibernate.current_session_context_class">thread</property>
即可。