title: constant error with bean name
body: <p>recently I decided to play with Spring. I did some tutorials and everything seems fine until the moment I am trying to use multiple properties files. As Internet says, it is enough to do something like </p>
  
  <pre><code>&lt;bean  class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"&gt;
          &lt;property name="ignoreUnresolvablePlaceholders" value="true"/&gt;
          &lt;property name="ignoreResourceNotFound" value="true"/&gt;
          &lt;property name="location"&gt;
              &lt;list&gt;
                  &lt;value&gt;classpath:readData.properties&lt;/value&gt;
                  &lt;value&gt;classpath:sendMail.properties&lt;/value&gt;
              &lt;/list&gt;
          &lt;/property&gt;
  &lt;/bean&gt; 
  </code></pre>
  
  <p>Well, unfortunately It does not work. Surprisingly this version works (for one properties folder):</p>
  
  <pre><code>&lt;bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"&gt;
          &lt;property name="location"&gt;
                  &lt;value&gt;classpath:readData.properties&lt;/value&gt;
          &lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>The Console says as follows:</p>
  
  <pre><code>Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0' defined in class path resource [Beans.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type 'java.util.ArrayList' to required type 'org.springframework.core.io.Resource' for property 'location'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [java.util.ArrayList] to required type [org.springframework.core.io.Resource] for property 'location': PropertyEditor [org.springframework.core.io.ResourceEditor] returned inappropriate value of type [java.util.ArrayList]
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:529)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
      at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
      at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
      at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198)
      at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:657)
      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:461)
      at org.springframework.context.support.ClassPathXmlApplicationContext.&lt;init&gt;(ClassPathXmlApplicationContext.java:139)
      at org.springframework.context.support.ClassPathXmlApplicationContext.&lt;init&gt;(ClassPathXmlApplicationContext.java:83)
      at corrected_reminder.Reminder.main(Reminder.java:25)
  Caused by: org.springframework.beans.TypeMismatchException: Failed to convert property value of type 'java.util.ArrayList' to required type 'org.springframework.core.io.Resource' for property 'location'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [java.util.ArrayList] to required type [org.springframework.core.io.Resource] for property 'location': PropertyEditor [org.springframework.core.io.ResourceEditor] returned inappropriate value of type [java.util.ArrayList]
      at org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:468)
      at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:494)
      at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:488)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1433)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1392)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1128)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
      ... 10 more
  Caused by: java.lang.IllegalArgumentException: Cannot convert value of type [java.util.ArrayList] to required type [org.springframework.core.io.Resource] for property 'location': PropertyEditor [org.springframework.core.io.ResourceEditor] returned inappropriate value of type [java.util.ArrayList]
      at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:260)
      at  org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:448)
      ... 16 more
  </code></pre>
  
  <p>Could anyone help me?</p>
  
  <p><strong>Edit</strong></p>
  
  <p>@Denis Makarskiy 
  I have tried it many times, but without satisfying results. Now I have</p>
  
  <pre><code>Exception in thread "main" org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Cannot locate BeanDefinitionDecorator for element [property-placeholder]
  Offending resource: class path resource [Beans.xml] 
  </code></pre>