BeanNameAutoProxyCreator中配置两个不同类的事务管理,可以这样配置吗?
<property name="transactionAttributes">
<props>
<!--privateTagService接口中方法 -->
<prop key="collectContent*">PROPAGATION_REQUIRED,-Exception</prop>
<!--DrapImgCodeService接口中方法 -->
<prop key="deleteOutdatedData">PROPAGATION_REQUIRED,-Exception</prop>
</props>
</property>
</bean>
<property name="beanNames">
<!-- 下面是所有需要自动创建事务代理的bean,可增加其他需要自动创建事务代理的bean -->
<list>
<value>privateTagService</value>
<value>DrapImgCodeService</value>
</list>
</property>