---
title: "Spring 常用 Transaction Annotation"
author: "wsjjasper"
date: "2012-06-28T21:05:30Z"
tags: ["Spring", "annotation", "transaction"]
categories: ["开源软件"]
slug: "spring-transaction-annotation"
draft: false
lastmod: "2012-06-28T21:11:27Z"
id: 1570448
url: "https://wsjjasper.iteye.com/blog/1570448"
---

Attribute Name Default Value Possible Values propagation Propagation.REQUIRED Propagation.REQUIRED Propagation.SUPPORTS Propagation.MANDATORY Propagation.REQUIRES\_NEW Propagation.NOT\_SUPPORTED Propagation.NEVER Propagation.NESTED isolation  Isolation.DEFAULT  
(Default isolation level of the underlying resource) Isolation.DEFAULT Isolation.READ\_UNCOMMITTED Isolation.READ\_COMMITTED Isolation.REPEATABLE\_READ Isolation.SERIALIZABLE timeout TransactionDefinition.TIMEOUT\_DEFAULT  
(Default transaction timeout in seconds of the  
underlying resource) An integer value larger than zero;  
indicates the number in seconds for  
transaction timeout readOnly FALSE FALSE TRUE rollbackFor  Exception classes for which transaction will be  
rolled back N/A rollbackForClassName  Exception class names for which transaction will  
be rolled back N/A noRollbackFor  Exception classes for which transaction will not  
be rolled back N/A noRollbackForClassName  Exception class names for which transaction will  
not be rolled back N/A value  ""(A qualifier value for the specified  
transaction) N/A

排版排不好，详见excel附件