Spring Transaction 一: 基本概念
1. 两个重要的接口
TransactionDefinition 和 TransactionStatus
TransactionDefinition
package org.springframework.transaction;public interface PlatformTransactionManager {TransactionStatus getTransaction(TransactionDefinition definition) throws TransactionException;void commit(TransactionStatus status) throws TransactionException;void rollback(TransactionStatus status) throws TransactionException;}