No Session found for current thread
这个是因为在hibernate 中如果要使用sessionFactory.getCurrentSession();
那么在hibernate的配置文件中就要加上这段
<property name="current_session_context_class" >thread</property>
hibernate4 No Session found for current thread
猜你喜欢
转载自jayyunfei.iteye.com/blog/2030718
今日推荐
周排行