今天写Hibernate时候遇到上面的异常:
处理办法是
在hibernate.cfg.xml中添加
<property name="hibernate.current_session_context_class">thread</property>
今天写Hibernate时候遇到上面的异常:
处理办法是
在hibernate.cfg.xml中添加
<property name="hibernate.current_session_context_class">thread</property>