Spring Data JPA 是 Spring 基于 ORM 框架.JPA 规范的基础上封装的一套 JPA 应用框架,可使开发者用极简的代码即可实现对数据的访问和操作.它提供了包括增删改查等在内的常用功能,且易于扩展.以下介绍JPA事务 1.事务基础: 事务的基本概念:即访问并可能更新数据库中各种数据项的一个程序执行单元. 需要管理事务的执行,要么成功.要么失败,一但失败,所有操作将回滚到初始状态,一但成功,则进行持久化. 事务特性ACID:原子性.一致性.隔离性(并发执行的事务不能相互干扰)