摘要: 解决"NoCurrentSessionContextconfigured"错误(2008-07-01 14:16:25) 标签:杂谈分类:学习笔记用Hibernate开发遇到"No CurrentSessionContext configured"错误在使用SessionFactory的getCurrentSession方法时遇到如下错误,经过检查,原因如下:是因为在hibernate.cfg.xml文件中忘记进行了如下设置:hibernate.current_session_context_class如果是在web容器中运行hibernate,则在hi 阅读全文
posted @ 2013-10-22 17:24 李贰白 阅读(414) 评论(0) 推荐(0)