Spring use one application.properties for production and another for debug : <p>I have a Spring application and I would like to be able to switch between configurations depending if I'm debugging the server or if the server is running in production. (the difference in configurations being things like database location.)</p>

<p>Ideally, I'd like to pass in a command line argument to my Spring application on boot-up and set the application configuration.</p>

<p>I have two separate application.properties files, one with the production values, and another with the debug values. How can I switch between the two of them?</p>
