1.如果是引入的是xml配置文件:
使用 <import resource="classpath:*.xml" />引入。
2.引入properties文件
方式一:单个配置文件()配置ignore-unresolvable="true" 解决延迟加载异常):
<context:property-placeholder location="classpath*:properties/jdbc.properties" ignore-unresolvable="true"/>
方式二:单个或者多个
<bean id="propertyConfigure" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath:1.properties</value>
<value>classpath:2.properties</value>
</list>
</property>
</bean>