title: How to inject a keyvalue properties file with Spring?
body: <p>I have a keyvalue properties file that contains error codes and their error messages.</p>
  
  <p>I'd like to inject this file on application startup, so that I can make lookups on the injected property without having to read the file.</p>
  
  <p>The following is just pseudocode, is there anything in <code>Spring</code> that could create this setup?</p>
  
  <pre><code>@Value(location = "classpath:app.properties")
  private Properties props;
  </code></pre>
  
  <p>whereas app.properties contains:</p>
  
  <pre><code>error1=test
  error2=bla
  ...
  </code></pre>
  
  <p>If not, how could I achieve this without spring?</p>