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.

1 comment:

  1. This is helpful but can you show how you set up a--dev.properties? thank you

    ReplyDelete