@Async and @Transactional: not working

前端 未结 2 1529
孤街浪徒
孤街浪徒 2020-12-31 07:43

Please see code.

  1. When I called the method @Async loadMarkUpPCT(), data is NOT committed into the table. It behaves as if it\'s non-tractional.

相关标签:
2条回答
  • 2020-12-31 08:17

    I just bumped into the same issue. Turns out I forgot to add the @EnableAsync annotation.

    0 讨论(0)
  • 2020-12-31 08:19

    Try to also annotate the loadMarkUpPCT() method with @Transactional and tell us if that worked.

    0 讨论(0)
提交回复
热议问题