Hibernate使用getCurrentSession() 的配置

在hibernate.cfg.xml配置如下:

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

 

posted @ 2019-10-11 09:30  SasaL  Views(336)  Comments(0)    收藏  举报