liferay のソース コードを読んでいると、2 つの xml ファイルが同じ bean-id を使用していることがわかりました。この方法を使用すると、すべてのプロパティが一緒にマージされますか?
dynamic-data-spring
----------------------
<bean id="liferayDataSource" class="org.springframework.jdbc.datasource.LazyConnectionDataSourceProxy">
<property name="targetDataSource">
<bean class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="targetSource" ref="dynamicDataSourceTargetSource" />
</bean>
</property>
</bean>
infrastructure-spring.xml
----------------------
<bean id="liferayDataSource" class="org.springframework.jdbc.datasource.LazyConnectionDataSourceProxy">
<property name="targetDataSource">
<bean class="com.liferay.portal.dao.jdbc.util.DataSourceFactoryBean">
<property name="propertyPrefix" value="jdbc.default." />
</bean>
</property>
</bean>