Method org.postgresql.jdbc4.Jdbc4Connection.isValid(int) is not yet implemented

后端 未结 7 762
时光说笑
时光说笑 2020-12-06 03:42

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         


        
7条回答
  •  独厮守ぢ
    2020-12-06 04:43

    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
    

提交回复
热议问题