title: Spring 3.1 @PropertySources does not throw Exception if property does not exist
body: <p>Although the name of a property in my Configuration class is wrong, Spring does not throw an Exception. The log shows that the key is not found.</p>
  
  <pre><code>2012-06-17 05:26:49,545 DEBUG | main | o.s.core.env.PropertySourcesPropertyResolver          | Could not find key 'pegaso.cfdiRequest' in any property source. Returning [null] 
  </code></pre>
  
  <p>I am using the property in an Environment class in my Configuraton Class</p>
  
  <pre><code>@Configuration
  @PropertySource("classpath:application.properties")
  public class AppConfig {
  
     @Autowired
    Environment env;
  
  @Bean
  public FesaBean fesaBean() {
     FesaBean fesaBean = new FesaBean();  
     fesaBean.setMyProperty(env.getProperty("pegaso.cfdiRequest"));
     return fesaBean;
  }
  </code></pre>
  
  <p><strong>pegaso.cfdiRequest</strong> does not exist in application.properties. Still, I do not get an Exception.</p>