You can use the application context constructor to load bean definitions from all these XML fragments. This onstructor takes multipleResource locations, as was shown in the previous section. Alternatively,use one or more occurrences of the<import/> element to load bean definitions from another file or files. For example:
<beans>
<import resource="services.xml"/>
<import resource="resources/messageSource.xml"/>
<import resource="/resources/themeSource.xml"/>
<bean id="bean1" class="..."/>
<bean id="bean2" class="..."/>
</beans>