原文:Spring Data Jpa錯誤——No EntityManager with actual transaction available for current thread - cannot reliably process 'remove' call

背景 項目中使用刪除 增加代替更新邏輯,在對應的service方法上增加事務處理 結果報錯,錯誤信息如下 原因 JPA接口deleteBySupersuUidIn String uid 沒有使用事務管理 解決辦法 在deleteBySupersuUidIn String uid 接口上使用注解 Modifying ...

2021-04-13 14:55 0 601 推薦指數:

查看詳情

 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM