I am trying to configure dbcp2 with postgres 9.1
When I run my app, it throws exception:
Exception in thread \"main\" org.springframework.jdbc.Cannot
Replace the POM.xml version to
org.postgresql postgresql 9.4-1200-jdbc41
Also, if you are using SSL, the jdbc URL should be following format
spring.datasource.url=jdbc:postgresql://hostName:5432/db?ssl=true&sslfactory=org.postgresql.ssl.NonValidatingFactory