Property from file is not found with Spring
<p>I am running into a problem where I can't access a Spring property from my Java code.</p>

<p>Here is the context:</p>

<pre><code>&lt;context:property-placeholder ignore-resource-not-found="false"
    location="file:/${setup.properties.directory}/setup.properties"/&gt;
</code></pre>

<p>The <code>setup.properties</code> file looks like this:</p>

<pre><code>paymentProvider.x.url=x
</code></pre>

<p>The code is:</p>

<pre><code>SpringContext.INSTANCE.getEnvironment()
                    .getProperty("paymentProvider.x.url");
</code></pre>

<p>There are no errors during run. However, the result of the code above gives <code>null</code>.</p>

<p>Anyone knows why?</p>