title: Cannot locate BeanDefinitionDecorator for element [property-placeholder]
body: <p>I am trying to load the properties file in Spring stand alone project and i am facing lot of struggle.</p>
  
  <p>I am having spring.xml file as below and trying to load config.properties file which has DB Url, user id, password etc.,</p>
  
  <p>Note: com.ioc.collections.PropertyClassDepInj.resources is the package where my spring.xml and config.properties are there.</p>
  
  <p>Spring.xml </p>
  
  <pre><code>&lt;bean id="pojoClassA" class="com.ioc.collections.PropertyClassDepInj.PojoClassA"&gt;
  
      &lt;!-- java.util.Properties --&gt;
      &lt;property name="propObj"&gt;
          &lt;props&gt;
              &lt;prop key="admin"&gt;admin@nospam.com&lt;/prop&gt;
              &lt;prop key="support"&gt;support@nospam.com&lt;/prop&gt;
          &lt;/props&gt;
      &lt;/property&gt;
  
      &lt;context:property-placeholder location="classpath:/config.properties" 
              ignore-unresolvable="true" /&gt;
      &lt;!--  
      &lt;util:properties id="pp" location="classpath:com.ioc.collections.PropertyClassDepInj.resources.config.properties"&gt;
  
      &lt;/util:properties&gt;
   --&gt;
  
  &lt;/bean&gt;
  </code></pre>
  
  <p>When i am running main class, i am facing the below exception.</p>
  
  <p>Exception in thread "main" org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Cannot locate BeanDefinitionDecorator for element [property-placeholder]</p>
  
  <p>I googled many threads related to this, but still it's not clear. I want to understand the root cause of this exception and how to fix this error?</p>
  
  <p>Also, need to know how to use the 
  
  <p>How to set the classpath for a particular project within a package in eclipse?</p>
  
  <p>How to inject the properties values like DB Url, DB Password etc., from properties to POJO classes through spring.xml file? Full sample code would be really great!</p>