解决异常:org.hibernate.HibernateException: Could not obtain transaction-synchronized Session for current

2017-02-15 15:57
使用了@Transactional来配置事务管理后获取session要用getcurrentsession(),且在配置文件里一定要配置这句 解决异常:org.hibernate.HibernateException: Could not obtain transaction-synchronized Session for current0