项目通过Hibernate查询时报出如下错误:

Hibernate Could not obtain transaction-synchronized Session for current thread

 

解决办法:

在实现类上添加@Transactional注解即可。

Hibernate Could not obtain transaction-synchronized Session for current thread问题处理

相关文章:

  • 2022-12-23
  • 2022-01-18
  • 2022-12-23
  • 2021-06-23
猜你喜欢
  • 2022-12-23
  • 2021-06-12
  • 2022-12-23
  • 2022-02-23
  • 2021-06-13
  • 2021-09-21
相关资源
相似解决方案