解決辦法:
1、改用以下配置:
<bean id= "propertyConfigurer"
class= "org.springframework.beans.factory.config.PropertyPlaceholderConfigurer" >
<property name= "locations">
<list>
<value> classpath:jdbc.properties</value >
</list>
</property>
</bean>
2、properties文件中的key不要與系統配置重名,比如 jdbcusername=root ,username=root
3、將context:property-placeholder 中屬性system-properties-mode 默認值配置成:NEVER