title: How can I provide different database configurations with Spring Boot?
body: <p>As I currently see it I have 5 possible database profiles</p>
  
  <ul>
  <li>CI testing -> h2 mem</li>
  <li>developer environment (could be test or app run) -> h2 mem, or h2 file, or postgres</li>
  <li>production -> postgres (ideally credentials not stored in the git/war)</li>
  </ul>
  
  <p>currently I have postgres configured for running the application, and h2 configured for testing via having a different <code>application.properties</code> in <code>java/resource</code>s vs <code>test/resources</code></p>
  
  <p>what's the simplest way to have the database connection information change for these scenarios?</p>