title: Database application.yml for Spring boot from applications.properties
body: <p>I've got a working Spring Boot Application that connects to a Postgres database. I've got the project set up with an application.properties file, but would like to make the switch over to an application.yml file. However when I make the switch, my application errors out while attempting to connect to the db.</p>
  
  <p>Original applications.properties file:</p>
  
  <pre><code>spring.jpa.database=POSTGRESQL
  spring.datasource.platform=postgres
  spring.jpa.show-sql=true
  spring.jpa.hibernate.ddl-auto=create-drop
  spring.database.driverClassName=org.postgresql.Driver
  spring.datasource.url=jdbc:postgresql://localhost:5432/mydb
  spring.datasource.username=foo
  spring.datasource.password=bar
  </code></pre>
  
  <p>And Here's what I've got so far in the application.yml file:</p>
  
  <pre><code>spring.jpa:
    database: POSTGRESQL
    hibernate.ddl-auto: create-drop
    show-sql: true
  
  spring.datasource:
    platform: postgres
    driverClassName: org.postgresql.Driver
    url: jdbc:postgresql://localhost:5432/mydb
    username: foo
    password: bar
  </code></pre>
  
  <p>Am I missing something in the translation between file types? </p>