Hibernate使用getCurrentSession() 的配置

在hibernate.cfg.xml配置如下:

<property name="hibernate.current_session_context_class">thread</property>

猜你喜欢

转载自www.cnblogs.com/SasaL/p/11652072.html
今日推荐