Spring将多个配置文件引入一个配置文件中

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd">

    <description>扩展的applicationContext文件列表</description>

    
    <!-- <import resource="ehcache/applicationContext-ehcache.xml" /> -->
    
    <import resource="cache/applicationContext-cache.xml" />
    
    <import resource="profile/applicationContext-profile.xml" />

    
    
</beans>
原文地址:https://www.cnblogs.com/james-roger/p/5864075.html