title: Could not resolve placeholder | Spring Placeholder
body: <p>I am trying to use Spring <code>&lt;context:property-placeholder&gt;</code> in my application for first time and encountering some issues, I have tried many things as well already Google and have seems few posts over SO.</p>
  
  <p>I am having a web application and need to pass some keys to underlying Class, was thinking of using place holder for same.Here is the structure of my application</p>
  
  <pre><code>Main
    -java
    -resources
    -webapp
  </code></pre>
  
  <p>I have a <code>project.properties</code> file which is inside <code>resource</code> folder, this is how I am trying</p>
  
  <pre><code>&lt;context:property-placeholder location="classpath:resources/project.properties" /&gt;
  &lt;beans:bean id="reCaptcha" class="net.tanesha.recaptcha.ReCaptchaImpl"&gt;
    &lt;beans:property name="privateKey" value="${demo.recapatcha_private_key}"/&gt;
     &lt;beans:property name="publicKey" value="${demo.recapatcha_public_key}"/&gt;
  &lt;/beans:bean&gt;
  </code></pre>
  
  <p>But I am getting following exception on server startup</p>
  
  <pre><code>org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'reCaptcha' defined in ServletContext resource [/WEB-INF/spring/appServlet/servlet-context.xml]: Could not resolve placeholder 'demo.recapatcha_private_key'
  </code></pre>
  
  <p>I have already tried placing project.properties file at various location which includes inside
  <code>WEB-INF/classes</code> and few other location at <code>webapp</code> but with no success.not sure what I am doing wrong</p>