title: Spring Boot JPA Database Choice
body: <p>How can I start a stand-alone Spring Boot JPA application -- not via cli -- with a choice of databases to get data, e.g., localhost:5432/my_db; or 192.168.1.100:5432/our_db, or example.com:5432/their_db?</p>
  
  <p>Mine currently uses the one in the application.properties file that contains:</p>
  
  <pre><code>spring.datasource.driverClassName=org.postgresql.Driver
  spring.datasource.url=jdbc:postgresql://localhost:5432/my_db
  spring.datasource.username=postgres
  spring.datasource.password=postgres
  
  spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect
  spring.jpa.generate-ddl=true
  spring.jpa.show-sql=true
  spring.jpa.hibernate.ddl-auto=create
  </code></pre>
  
  <p>Thanks in advance</p>