I thought you should add the postgres driver name in the application.properties file.
spring.datasource.driver-class-name=org.postgresql.Driver
I Hope this helps!!