您的位置:首页 > 其它

Hibernate异常 No CurrentSessionContext configured!

2012-03-08 14:39 337 查看


今天写Hibernate时候遇到上面的异常:

处理办法是

在hibernate.cfg.xml中添加

<property name="hibernate.current_session_context_class">thread</property>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐