<context:property-placeholder location=“jdbc.properties”/> 
应该这样写吧!我是这样写的!就可以搜寻到配置文件!

解决方案 »

  1.   

    属性错了

    <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> 
    <property name="locations" value="classpath:jdbc.properties"/> 
    </bean>
    改成下面的试试:
    <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> 
    <property name="locations">
         <list>
            <value>classpath:jdbc.properties</value>
         </list>
      </property> 
    </bean>
      

  2.   

    读取单个文件的时候用location 多个文件的说话用locations 下面要用list