title: spring PropertyPlaceholderConfigurer and context:property-placeholder
body: <p>I have following bean declaration:</p>
  
  <pre><code>  &lt;bean
       class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"&gt;
          &lt;property name="locations"&gt;
              &lt;list&gt;
                  &lt;value&gt;WEB-INF/classes/config/properties/database.properties&lt;/value&gt;
                  &lt;value&gt;classpath:config/properties/database.properties&lt;/value&gt;
              &lt;/list&gt;
          &lt;/property&gt;
          &lt;property name="ignoreResourceNotFound" value="true"/&gt;
      &lt;/bean&gt;
  &lt;bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"&gt;
      &lt;property name="driverClassName" value="${jdbc.driverClassName}" /&gt;
      &lt;property name="url" value="${jdbc.url}" /&gt;
      &lt;property name="username" value="${jdbc.username}" /&gt;
      &lt;property name="password" value="${jdbc.password}" /&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>Now I want to change above PropertyPlaceholderConfigurer to following format:</p>
  
  <pre><code>&lt;context:component-scan base-package="org.example.config"/&gt;
  &lt;util:properties id="jdbcProperties" 
             location="classpath:config/properties/database.properties"/&gt;
  </code></pre>
  
  <ol>
  <li>ignoreResourceNotFound will ignore the property while running. e.g:
  When testing application WEB-INF/.. path will ignore( since maven
  project and property file is under src/main/resources/..), while
  launching web application, other property will ignore path, I need
  to implement same with above format.</li>
  <li>should be able to add multiple property file like
  database.properties, test.properties etc.</li>
  <li>in Spring 3, can I use annotation instead of these xml files for DB
  loading, how can I do it? since I am using only one xml file(given
  above) to load db stuff.</li>
  </ol>
  
  <p>I am using Spring 3 framework.</p>