首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

解决No CurrentSessionContext configured!异常

2012-09-21 
解决No CurrentSessionContext configured!错误只需在hibernate.cfg.xml的session-factory...../sessio

解决No CurrentSessionContext configured!错误
只需在hibernate.cfg.xml的
<session-factory>
.....
</session-factory>中加入
<property name="hibernate.current_session_context_class">thread</property>
即可。

热点排行