`
wsjjasper
  • 浏览: 13541 次
  • 性别: 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附件

分享到:
评论

相关推荐

    org.springframework.transaction-3.0.0.M4.jar

    org.springframework.transaction-3.0.0.M4.jar

    spring的annotation-driven配置事务管理器详解 (多数据源配置

    Spring 的 Annotation-Driven 配置事务管理器详解(多数据源配置) Spring 框架提供了强大的事务管理机制,通过使用 Annotation-Driven 配置,可以方便地管理事务。在多数据源配置中,spring 的 Annotation-Driven...

    spring3、 hibernate4 配置声明式事务管理(annotation方式)

    <tx:annotation-driven transaction-manager="transactionManager"/> ``` 四、使用注解进行事务管理 在业务服务类中,我们可以使用`@Transactional`注解来定义事务的边界。例如: ```java @Service public class ...

    spring-framework-reference

    《Spring框架参考手册》是Spring框架的官方文档,为开发者提供了关于Spring框架各个方面的详细信息。Spring框架是一个开源的Java平台,它为现代基于Java的企业应用程序开发提供全面的编程和配置模型。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. ...

    Struts2+Spring2+Hibernate3+Annotation所需JAR包

    ### Struts2+Spring2+Hibernate3+Annotation所需JAR包详解 在Java Web开发领域,Struts2、Spring2和Hibernate3是三个非常重要的框架,它们分别负责Web层、业务逻辑层和服务持久化层的功能实现。为了更好地整合这三...

    passwd003_transaction_annotation

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

    spring_hibernate_annotation的三种实现

    以下是关于"spring_hibernate_annotation的三种实现"的详细知识点: 1. **Spring的注解驱动开发** - **@Autowired**:自动装配bean,根据类型或名称自动找到合适的依赖。 - **@Qualifier**:当有多个相同类型的...

    Spring事务Transaction配置的五种注入方式详解

    Spring事务Transaction配置的五种注入方式详解 Spring框架中的事务管理是通过TransactionManager来实现的,TransactionManager是Spring事务管理的核心组件。Spring提供了多种方式来配置事务,下面将详细介绍Spring...

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

    spring的部分常用xsd文件,包含mvc,aop,beans,tx,task多个版本

    4. **Spring Transaction Management (Tx)**: `spring-tx.xsd`与Spring的事务管理相关,提供了如`<tx:annotation-driven>`元素来自动处理事务,以及`<tx:advice>`、`<tx:attributes>`等元素来定义事务策略。 5. *...

    使用Spring的声明式事务----Annotation注解方式

    <tx:annotation-driven transaction-manager="transactionManager" /> ``` 这里`transactionManager`是我们的事务管理器,通常是一个`PlatformTransactionManager`的实现,如`DataSourceTransactionManager`。 ...

    Spring事务annotation原理详解

    在使用Spring的事务管理时,需要指定事务管理器,例如:<tx:annotation-driven transaction-manager="txManager" />,这里的txManager就是指定的事务管理器。 Spring的事务管理是通过AOP来实现的,使用ASM来操作...

    spring3+hibernate4配置声明式事务管理(annotation方式)

    3. **注解(Annotation)**:注解是Java SE 5引入的一种元数据,它允许在代码中嵌入信息,用于编译时或运行时被处理。在Spring和Hibernate中,注解常用于配置和简化框架的使用,例如在类和方法上使用`@Transactional...

    SpringTest

    接着,"Spring_1800_Spring_Hibernate_Transaction_Annotation"提到了注解配置的事务管理。与XML配置相比,注解配置更加简洁直观。除了在服务层方法上使用`@Transactional`注解之外,我们还可以在配置类上使用`@...

    spring源码spring-framework-4.2.5.RELEASE

    `org.springframework.transaction`和`org.springframework.transaction.interceptor`包中的TransactionInterceptor处理事务的开始、提交和回滚。 五、其他关键模块 9. **Spring表达式语言(SpEL)**:在`org....

    spring recipe 英文版

    Spring Annotation-Driven Core Tasks 随着 Spring 的发展,注解驱动成为了越来越重要的编程模型。这一章节深入探讨了如何利用注解来简化开发流程,提高代码可读性和可维护性。 #### 4. Spring MVC Spring MVC ...

    spring_MVC源码

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

    spring3,hibernate4 配置声明式事务管理(annotation方式)

    <tx:advice id="txAdvice" transaction-manager="transactionManager"> *" propagation="REQUIRED"/> *" propagation="REQUIRED"/> *" propagation="REQUIRED"/> *" propagation="REQUIRED"/> *" propagation...

Global site tag (gtag.js) - Google Analytics