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 |
相关推荐
spring-framework-reference, spring doc,spring官方文档
3. Spring Annotation Driven Core Tasks 4. Spring @MVC 5. Spring REST 6. Spring Deployment to the Cloud 7. Spring Social 8. Spring Security 9. Spring Mobile 10. Spring with other Web Frameworks 11. ...
这是一个Dynamic Web Project,主要使用hibernate和spring框架,其中事务管理使用的是注解。 hibernate的版本:hibernate-distribution-3.6.6.Final; spring的版本:spring-framework-3.1.0.M2 。
资料包含spring-iocdi-annotation-document,iocdi-annotation-mvc,iocdi-xml-extend,iocdi-annotation-extend proxy,jdkproxy-transaction,jdkproxy-salary,day02-itheima11-spring-08-cglibproxy,day02-itheima11-...
一个小实例工程,说的是spring3+hibernate4配置声明式事务管理(annotation方式)
Chapter 6- Annotation-driven development with Spring Chapter 7 - Database interaction using Spring Chapter 8 - Messaging, emailing, asynchronous method execution, and caching using Spring Chapter 9 - ...
资料包含day03-itheima11-spring-01-aop-xml-methodinvocation-count,day03-itheima11-spring-02-aop-xml-privilege,day03-itheima11-spring-03-aop-xml-salary,day03-itheima11-spring-04-aop-annotation,day03...
Spring Boot Documentation 1. About the Documentation 2. Getting Help 3. First Steps 4. Working with Spring Boot 5. Learning about Spring Boot Features 6. Moving to Production 7. Advanced Topics II. ...
51. <tx:annotation-driven transaction-manager="transactionManager" /> 52. <tx:annotation-driven mode="aspectj"/> 53. 54. <aop:aspectj-autoproxy/> 55.</beans> hibernate.properties数据库连接...
8.3.5. 常用注解 8.3.6. JUnit 3.8遗留支持 8.3.7. Spring TestContext Framework 8.3.8. PetClinic示例 8.4. 更多资源 II. 中间层数据访问 9. 事务管理 9.1. 简介 9.2. 动机 9.3. 关键抽象 9.4. 使用资源...
spring 整合hibernate 事务管理的一个例子 是使用annotation 完成的
javax.annotation javax.ejb javax.el javax.faces javax.inject javax.jdo javax.jms javax.mail javax.persistence javax.portlet javax.resource javax.servlet javax.transaction javax.validation javax.xml....
8.3.5. 常用注解 8.3.6. JUnit 3.8遗留支持 8.3.7. Spring TestContext Framework 8.3.8. PetClinic示例 8.4. 更多资源 II. 中间层数据访问 9. 事务管理 9.1. 简介 9.2. 动机 9.3. 关键抽象 9.4. 使用资源...
我們使用Spring Framework裡,在Service 的 Method 給予@Transactional 系統就會去管理transaction,我們是在哪裡做了甚麼設定嗎? 為什麼下的這個Annotation成功會commit失敗會rollback呢? Transaction 管理做了...
<tx:annotation-driven transaction-manager="txManager"/> <!-- 采用单数据源事务控制方式,通过注解来定义事务--> class="org.springframework.jdbc.datasource.DataSourceTransactionManager"> ...
# @see org.springframework.transaction.annotation.AnnotationTransactionAttributeSource public AnnotationTransactionAttributeSource() { this(true); } public AnnotationTransactionAttributeSource...
jboss-transaction-api_1.2_spec-1.0.0.Final.jar jcifs-1.3.17.jar jcl-over-slf4j-1.7.10.jar jdom-2.0.5.jar jmemcached-core-1.0.0.jar jmock-1.2.0.jar jmock-cglib-1.2.0.jar jodconverter-2.2.2.jar ...
JTA环境的事务配置 <bean id="transactionManager" class="org.springframework.transaction.jta.JtaTransactionManager or WebLogicJtaTransactionManager"/> --> <!-- 使用annotation定义事务 --> <tx:...
javax.annotation javax.ejb javax.el javax.faces javax.inject javax.jdo javax.jms javax.mail javax.persistence javax.portlet javax.resource javax.servlet javax.transaction javax.validation javax.xml....