SpringAOP对于事物的配置的一种
来源:互联网 发布:qq抓取软件 编辑:程序博客网 时间:2024/05/16 04:36
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">
<!-- 配置sessionFactory -->
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="configLocation">
<value>classpath:hibernate.cfg.xml</value>
</property>
</bean>
<!-- 配置事务管理器 -->
<bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory">
<ref local="sessionFactory"/>
</property>
</bean>
<!-- 配置事务特性 -->
<tx:advice id="txAdvice" transaction-manager="transactionManager">
<tx:attributes>
<tx:method name="get*" read-only="true"/>
<tx:method name="load*" read-only="true"/>
<tx:method name="find*" read-only="true"/>
<tx:method name="*" propagation="REQUIRED"/>
</tx:attributes>
</tx:advice>
<!-- 配置哪些类的方法进行事务管理 -->
<aop:config>
<aop:pointcut id="allManagerMethod" expression="execution (* com.wish.service.impl.*Impl.*(..))"/>
<aop:advisor advice-ref="txAdvice" pointcut-ref="allManagerMethod"/>
</aop:config>
</beans>
- SpringAOP对于事物的配置的一种
- 对于数据库事物的理解
- springAOP的配置及实例
- SpringAOP的几种配置
- 对于Oracle的独力事物使用方法
- 谈谈对于数据库事物的理解
- spring2的事物配置
- Spring的事物配置
- spring的事物配置
- 对于状态栏的一种解决
- springAOP的两种配置方法
- spring的事物配置方式
- spring 事物配置的错误
- spring的事物管理配置
- 对于当前时点不能进行事物的事后确认。
- 人们为什么对于美好的事物总是那么憧憬?
- 总结下自己对于一些事物的看法
- 对于搜索引擎未来的一种设想
- Repeater在无数据记录时显示类似GridView空模板(EmptyDataTemplate)
- 递归
- stl之顺序容器学习笔记3
- js弹出div层
- 将eclipse3.2建的工程导入eclipse3.5(Galileo)后,出现 no label provider for org.eclipse.jst.servlet.ui.internal.navigator.com
- SpringAOP对于事物的配置的一种
- ORA-04030: out of process memory when trying to allocate 64544 bytes (sort subheap,sort key)
- Web.config详解
- properties文件写注释
- ASP.NET组件设计之生命周期详解
- oracle删除表中所有的数据
- 装饰模式
- 那一段时间真的好想家!
- oracle使用子查询插入和修改数据