多个spring配置相互引用的问题
在一个配置文件中的bean想要引用另一个文件中的bean,可以使用
<property name="dataSource">
<ref bean="dataSource"/>
</property>
这个没有问题。但是它只能做属性的引用。
但是如果是这样呢
<bean id="proxyshow" parent="transactionProxyFactoryBean">
<property name="target" ref="myshow"></property>
</bean>
transactionProxyFactoryBean是另一个xml中的事务代理类。
我想在这个xml中继承它,但是不知道该怎么做?
还有多个xml中如果有重名的情况怎么办?