Spring property configurer for multiple environments

Here's a spring bean configuration snippet I use for configuring my spring application. By default it loads the configuration from the app-dev.properties, which is used for local development. For for production and staging environments you can override it with a system property app.properties.