spring读取properties的方法 首先在配置文件中配置PropertyPlaceholderConfigurer单个配置文件:<bean id="propertyConfigurer" value="classpath:jdbc.properties"/> </bean> 多个配置文件:<bean id="propertyConfigurer" value="${jdbc.url}"/>