`

hibernate4 No Session found for current thread

阅读更多
No Session found for current thread
这个是因为在hibernate 中如果要使用sessionFactory.getCurrentSession();
那么在hibernate的配置文件中就要加上这段
<property name="current_session_context_class" >thread</property>
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics