title: Spring reads property file but values are null
body: <p>I don't really understand the problem here. I'm trying to use a properties file in my Spring Application. The file seems to get read but if I try to read the values I get null.</p>
  
  <p>This is (part) of my context xml:</p>
  
  <pre><code>&lt;beans xmlns="http://www.springframework.org/schema/beans"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
  xmlns:context="http://www.springframework.org/schema/context"
  xmlns:aws-context="http://www.springframework.org/schema/cloud/aws/context" 
  xmlns:tx="http://www.springframework.org/schema/tx"
  xsi:schemaLocation="http://www.springframework.org/schema/beans
  http://www.springframework.org/schema/beans/spring-beans-3.0.xsd 
  http://www.springframework.org/schema/tx 
  http://www.springframework.org/schema/tx/spring-tx-3.0.xsd 
  http://www.springframework.org/schema/context 
  http://www.springframework.org/schema/context/spring-context-3.0.xsd 
  http://www.springframework.org/schema/cloud/aws/context
  http://www.springframework.org/schema/cloud/spring-cloud-aws-context.xsd"&gt;
  
  &lt;tx:annotation-driven /&gt;
  
  &lt;context:component-scan base-package="my.package" /&gt;
  
  &lt;context:annotation-config /&gt;
  
  &lt;context:property-placeholder location="classpath:test.properties" /&gt;
  
  &lt;!-- OTHER STUFF HERE --&gt;
  &lt;/beans&gt;
  </code></pre>
  
  <p>I have my test.properties under src/main/resources</p>
  
  <p>When I try to run it like this:</p>
  
  <pre><code>@RunWith(SpringJUnit4ClassRunner.class)
  @ContextConfiguration("classpath*:META-INF/spring/context-test.xml")
  public class SimpleTest {
  
      @Autowired
      private ApplicationContext context;
  
      @Autowired
      private Environment environment;
  
      @Test
      public void test() throws Exception {
          System.out.println(environment);
          System.out.println(environment.getProperty("my.test"));
      }
  }
  </code></pre>
  
  <p>The output will be:</p>
  
  <pre><code>StandardEnvironment {activeProfiles=[], defaultProfiles=[default], propertySources=[systemProperties,systemEnvironment]}
  null
  </code></pre>
  
  <p>So I assume I should see something in "propertySources" there besides the system properties right?</p>
  
  <p>Also if I change the xml line to this:</p>
  
  <pre><code>&lt;context:property-placeholder location="classpath:test.properties2" /&gt;
  </code></pre>
  
  <p>I get a FileNotFound exception which means the file itself is loaded? So why can't I load the properties from it?</p>
  
  <p>In the test.properties I have only this:</p>
  
  <pre><code>my.test=123456
  </code></pre>
  
  <p>What could be the problem here?</p>