文章列表
hibernate.current_session_context_class属性配置
hibernate.current_session_context_class属性配置
此设置的作用如下:
What does sessionFactory.getCurrentSession() do? First, you can call it
as many times and anywhere you
like, once you get hold of your SessionFactory (easy thanks to
HibernateUtil). The getCurrentSessio ...