Executing an update/delete query] with root cause jpa执行update语句报错

springbot继承jpa执行update语句。报错

Executing an update/delete query] with root cause 。。。。

原因是调用该Dao的service方法,没有加事务注解。

添加事务注解:@Transactional  即可解决问题。

发布了109 篇原创文章 · 获赞 49 · 访问量 6万+

猜你喜欢

转载自blog.csdn.net/SoWhatWorld/article/details/105100090
今日推荐