在ssh开发中,往往有这样的配置在spring 中的配置文件中
<bean id="transactionManager"
class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource">
<ref local="dataSource" />
</property>
</bean>
<bean id="transactionAttributeSource"
class="org.springframework.transaction.interceptor.NameMatchTransactionAttributeSource">
<property name="properties">
<props> <prop key="query*">PROPAGATION_REQUIRED</prop>
</props>
</property>
</bean>
<bean id="transactionInterceptor"
class="org.springframework.transaction.interceptor.TransactionInterceptor">
<property name="transactionManager">
<ref bean="transactionManager" />
</property>
<property name="transactionAttributeSource">
<ref bean="transactionAttributeSource" />
</property>
</bean>谁帮我解释下这3个bean的关系哦,谢谢
<bean id="transactionManager"
class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource">
<ref local="dataSource" />
</property>
</bean>
<bean id="transactionAttributeSource"
class="org.springframework.transaction.interceptor.NameMatchTransactionAttributeSource">
<property name="properties">
<props> <prop key="query*">PROPAGATION_REQUIRED</prop>
</props>
</property>
</bean>
<bean id="transactionInterceptor"
class="org.springframework.transaction.interceptor.TransactionInterceptor">
<property name="transactionManager">
<ref bean="transactionManager" />
</property>
<property name="transactionAttributeSource">
<ref bean="transactionAttributeSource" />
</property>
</bean>谁帮我解释下这3个bean的关系哦,谢谢
解决方案 »
- 初学者求教!
- java split 问题高分求解
- java高手请进 高分求救 怎样编个判断闰年的程序
- 如何在程序中实现鼠标点击jtextfield这一效果?
- 怎么感觉这的提问交流都是一些很基础的求一段代码、解决面试问题、疑惑、什么书籍推荐、java与其他语言的比较之类的入门级
- 关于把java的源代码转换成操作系统可执行的程序
- 菜鸟问题:谁能解释一下这个循环方法?
- 有关Java线程wait后唤醒的问题
- 有没有报表自动生成工具for java的,如VB的seagate crystal Reports?
- int型变量 和’\r’ 和’\n’ 之间为什么能用==号,IO流部分实例
- jprofiler
- 把用户名密码保存到一个文本文件中
<ref--只引用(用ID引入)</property>--类的一个属性