spring 里的事务配置
来源:互联网 发布:省钱快报app 数据来源 编辑:程序博客网 时间:2024/06/06 02:28
spring 里的事务配置
<!-- 配置事务 -->
<bean id="transactionManager"
class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory">
<ref bean="sessionFactory" />
</property>
</bean>
<!-- 配置事务特性 -->
<tx:advice id="txAdvice" transaction-manager="transactionManager">
<tx:attributes>
<tx:method name="add*" propagation="REQUIRED" />
<tx:method name="delete*" propagation="REQUIRED" />
<tx:method name="list*" propagation="REQUIRED" />
<tx:method name="*" read-only="true" />
</tx:attributes>
</tx:advice>
<!-- 配置哪些类文件的方法进行事务管理 -->
<aop:config>
<aop:pointcut id="allManagerMethod"
expression="execution (* com.cctv.crm.service.*.*(..))" />
<aop:advisor advice-ref="txAdvice"
pointcut-ref="allManagerMethod" />
</aop:config>
</beans>
- spring 里的事务配置
- Spring 在xml配置里配置事务
- Spring的事务配置
- Spring的事务配置
- Spring的事务配置
- spring的事务配置
- Spring的事务配置
- Spring的事务配置
- Spring的事务配置
- Spring的事务配置
- spring事务的配置
- Spring的事务配置
- spring的事务配置
- Spring的事务配置
- Spring事务的配置
- spring的事务配置
- spring事务的配置
- Spring事务的配置
- hdu1106 排序
- 【JAVA IO】_管道流笔记
- Android获取版本号
- 在工作线程中调用UpdateData函数怎么抛出异常呢
- Hibernate异常No row with the given identifier exists 解决方法
- spring 里的事务配置
- Parsing XML with SAX_(MyMoviesWithHttpClient)
- 使用UIWebView播放视频时捕捉全屏播放事件
- [hypervisor]剖析 Linux hypervisor
- Cacti安装
- s:select发出的参数action接收不到
- json格式
- struts.xml 跳转到.action配置
- VC++:结合设备安装类GUID和设备接口类GUID获取设备VIDPID