错误:No CurrentSessionContext configured

原因:你在hibernate的xml文件中没有配置本地事物。请在xml文件中加上

<property name="hibernate.current_session_context_class">thread</property>

即可

http://blog.csdn.net/baple/article/details/39957499

这篇文章有详尽解释。

posted on 2017-11-25 22:25  feettable  阅读(139)  评论(0编辑  收藏  举报