Spring整合Hibernate事务时要注意:

包扫描中配置:use-default-filters="false",防止重复扫描

hibernate.current_session_context_class配置为:org.springframework.orm.hibernate5.SpringSessionContext

获取Session方式为getCurrentSession();

posted on 2020-03-10 16:31  LeoRiver  阅读(152)  评论(0)    收藏  举报