大概分析一般使用了注解才会报这方面的错

1.没有在spring的ApplicationContext.xml中开启注解事务

<!-- 开启注解事务 -->
    <tx:annotation-driven transaction-manager="txManager"/>

2.没有在方法上挂注解事务标签

报错解决:No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-14
  • 2021-11-17
  • 2022-12-23
猜你喜欢
  • 2022-01-01
  • 2021-07-18
  • 2021-07-21
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案