spring hibernate整合: Could not obtain transaction-synchronized Session for current thread

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/G66565906/article/details/85772404

当hibernate 将事务交由 spring管理时,  应将 @Transactional 加入对接的接口层,即其它对象调用的方法上,若将@Transactional加在内部方法上,将会出现 Could not obtain transaction-synchronized Session for current thread 异常

猜你喜欢

转载自blog.csdn.net/G66565906/article/details/85772404
今日推荐