`
wsjjasper
  • 浏览: 13301 次
  • 性别: Icon_minigender_1
文章分类
社区版块
存档分类
最新评论

Spring 常用 Transaction Annotation

阅读更多

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附件

分享到:
评论

相关推荐

    spring-framework-reference

    spring-framework-reference, spring doc,spring官方文档

    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. ...

    passwd003_transaction_annotation

    这是一个Dynamic Web Project,主要使用hibernate和spring框架,其中事务管理使用的是注解。 hibernate的版本:hibernate-distribution-3.6.6.Final; spring的版本:spring-framework-3.1.0.M2 。

    spring练习项目.7z

    资料包含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方式)

    一个小实例工程,说的是spring3+hibernate4配置声明式事务管理(annotation方式)

    Getting.started.with.Spring.Framework.2nd.Edition1491011912.epub

    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 - ...

    Spring基础demo学习项目.7z

    资料包含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-reference.pdf

    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. ...

    spring_MVC源码

    51. <tx:annotation-driven transaction-manager="transactionManager" /> 52. <tx:annotation-driven mode="aspectj"/> 53. 54. <aop:aspectj-autoproxy/> 55.</beans> hibernate.properties数据库连接...

    Spring中文帮助文档

    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. 使用资源...

    Transaction.rar

    spring 整合hibernate 事务管理的一个例子 是使用annotation 完成的

    spring-framework-3.0.5.RELEASE-dependencies-1

    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....

    Spring API

    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. 使用资源...

    后端 Java Spring Data Jpa @Transactional 介绍

    我們使用Spring Framework裡,在Service 的 Method 給予@Transactional 系統就會去管理transaction,我們是在哪裡做了甚麼設定嗎? 為什麼下的這個Annotation成功會commit失敗會rollback呢? Transaction 管理做了...

    Spring3中配置DBCP,C3P0,Proxool,Bonecp数据源

    <tx:annotation-driven transaction-manager="txManager"/> <!-- 采用单数据源事务控制方式,通过注解来定义事务--> class="org.springframework.jdbc.datasource.DataSourceTransactionManager"> ...

    transaction-test:Spring 事务配置

    # @see org.springframework.transaction.annotation.AnnotationTransactionAttributeSource public AnnotationTransactionAttributeSource() { this(true); } public AnnotationTransactionAttributeSource...

    javaweb项目常用jar包

    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 ...

    SSH整合&&SSH集成开发

    JTA环境的事务配置 <bean id="transactionManager" class="org.springframework.transaction.jta.JtaTransactionManager or WebLogicJtaTransactionManager"/> --> <!-- 使用annotation定义事务 --> <tx:...

    spring-framework-3.0.5.RELEASE-dependencies-6

    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....

Global site tag (gtag.js) - Google Analytics