No CurrentSessionContext configured 异常
No CurrentSessionContext configured 错误
hibernate.cfg.xml:在session-factory段加入:
<property name="Hibernate.current_session_context_class">thread</property>
引入2篇帖子:
http://hi.baidu.com/shjiegun/blog/item/8e230dd354bbbb0b3bf3cf1f.html
http://esffor.iteye.com/blog/96395
hibernate.cfg.xml:在session-factory段加入:
<property name="Hibernate.current_session_context_class">thread</property>
引入2篇帖子:
http://hi.baidu.com/shjiegun/blog/item/8e230dd354bbbb0b3bf3cf1f.html
http://esffor.iteye.com/blog/96395