Executing an update/delete query; nested exception is javax.persistence.TransactionRequiredException
问题:在调用JPA进行更新操作时报错如下:Executing an update/delete query; nested exception is javax.persistence.TransactionRequiredException:代码:原因:其实提示已经很明确了,没有使用事物解决方案:方法上增加@Transactional @Transactional...
原创
2018-07-26 05:14:15 ·
22960 阅读 ·
1 评论