Hibernate used to getCurrentSession () Configuration

In hibernate.cfg.xml configuration is as follows:

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

 

Guess you like

Origin www.cnblogs.com/SasaL/p/11652072.html