title: Spring: Environment specific configuration
body: <p>Using Spring I need some kind of environment (dev|test|prod) specific properties. </p>
  
  <p>I have exactly one configuration file (myapp.properties) and for some reasons I cannot have more than one configuration file (even spring can handle more than one).</p>
  
  <p>So I need the possibility to add properties with a prefix like</p>
  
  <pre><code>dev.db.user=foo
  prod.db.user=foo
  </code></pre>
  
  <p>and tell the application which prefix (environment) to use with a VM-argument like <code>-Denv-target</code> or something like this.</p>