<bean id="iChApplyService" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
<property name="transactionManager" ref="transactionManagerCheck2"/>
<property name="target" ref="iChApplyServiceTarget"/>
<property name="transactionAttributes">
<props>
<prop key="*">PROPAGATION_REQUIRED,-Exception</prop>
</props>
</property>
<property name="transactionManager" ref="transactionManagerCheck2"/>
<property name="target" ref="iChApplyServiceTarget"/>
<property name="transactionAttributes">
<props>
<prop key="*">PROPAGATION_REQUIRED,-Exception</prop>
</props>
</property>
</bean>
-Exception选项 如果在iChApplyServiceTarget的方法内对抛出的异常进行了处理,则-Exception会导致事务回滚
+Exception则会提交,不配置也会提交
而如果在iChApplyServiceTarget的调用方进行处理,则不配置也会回滚.
原理不明,望指导