摘要: 在spring boot 中,使用事务非常简单,直接在方法上面加入@Transactional 就可以实现,以下是我的做法 发现事务不回滚,即 this.repository.delete(id); 成功把数据删除了。 原因: 默认spring事务只在发生未被捕获的 RuntimeException 阅读全文
posted @ 2017-04-06 13:49 不再蒙查查 阅读(17619) 评论(0) 推荐(3) 编辑