原文:Caused by: javax.persistence.TransactionRequiredException: Executing an update/delete query

org.springframework.dao.InvalidDataAccessApiUsageException: Executing an update delete query nested exception is javax.persistence.TransactionRequiredException: Executing an update delete query at or ...

2018-12-30 13:21 0 874 推薦指數:

查看詳情

executing an update/delete query問題

是因為在做SpringDataJpa更新和刪除操作的時候Repository層沒有加事務的注解,加上就行了: ...

Thu Jun 14 23:40:00 CST 2018 0 3474
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM