applicationContext.xml
<?xml version="1.0" encoding="GB2312"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/beans/spring-mvc-3.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd"> <bean id="applicationProperties" class="org.springframework.beans.factory.config.PropertiesFactoryBean"> <property name="ignoreResourceNotFound" value="true" /> <property name="locations"> <list> <!-- 标准配置 --> <value>classpath:jdbc.properties</value> </list> </property> </bean> <bean id="propertyConfigurer" class="cn.edu.hbcf.common.springmvc.CustomizedPropertyConfigurer"> <property name="locations"> <list> <value>classpath:jdbc.properties</value> <value>classpath:system.properties</value> </list> </property> </bean> <import resource="classpath:/spring/spring-pool.xml" /> <import resource="classpath:/spring/spring-common.xml" /> <import resource="classpath:/spring/spring-webservice.xml"/> </beans>