ssh框架抛异常org.hibernate.HibernateException: Could not obtain transaction-synchronized Session for current thread。
原因:事务不同步
解决:在类上加注解@Transactional
ssh框架抛异常org.hibernate.HibernateException: Could not obtain transaction-synchronized Session for current thread。
原因:事务不同步
解决:在类上加注解@Transactional