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

Logo

技术共进,成长同行——讯飞AI开发者社区

更多推荐