spring配置getcurrentsession的时候,hibernate3和hibernate4的区别

ssh整合时,如果使用getcurrentsession获取session需要在spring的配置文件中配置hibernate.current_session_context_class,h3可以使用thread作为值,但是h4必须使用org.springframework.orm.hibernate4.SpringSessionContext

h4不能使用thread

猜你喜欢

转载自tydldd.iteye.com/blog/1720150