go4it

just do it

2009年7月21日

Spring视频学习(十)使用XML配置事务

摘要: 1.XML配置<!-- 配置事务管理器 --> <bean id="txManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager"> <property name="dataSource" ref="dataSource"/> </bean> &l... 阅读全文

posted @ 2009-07-21 21:13 cxccbv 阅读(456) 评论(0) 推荐(0)

Spring视频学习(九)使用Spring注解方式管理事务与传播行为详解

摘要: 一、事务传播属性 REQUIRED:业务方法需要在一个事务中运行。如果方法运行时,已经处在一个事务中,那么加入到该事务,否则为自己创建一个新的事务。 NOT_SUPPORTED:声明方法不需要事务。如果方法没有关联到一个事务,容器不会为它开启事务。如果方法在一个事务中被调用,该事务会被挂起,在方法调用结束后,原先的事务便会恢复执行。 REQUIRESNEW:属性表明不管是否存在事务,业务方法总会为... 阅读全文

posted @ 2009-07-21 15:39 cxccbv 阅读(701) 评论(0) 推荐(0)

Spring视频学习(八)整合JDBC

摘要: 1.配置命名空间<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:aop="htt... 阅读全文

posted @ 2009-07-21 15:13 cxccbv 阅读(522) 评论(0) 推荐(0)

导航