错误:No CurrentSessionContext configured

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

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

即可

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

这篇文章有详尽解释。

原文地址:https://www.cnblogs.com/dengkaien/p/7896882.html