How to setup Spring/Heroku/postgres SSL datasource

前端 未结 4 1810
孤独总比滥情好
孤独总比滥情好 2020-12-25 08:16

I\'m trying to create a datasource from my Heroku/Spring application to postgres.heroku.com postgres database. Here is my applicationContext.xml snippet.

<
4条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-25 08:36

    When connecting to Heroku Postgres with jdbc, you will also sometimes get an error unless you add the SSL parameters to the url:

    ssl=true
    sslfactory=org.postgresql.ssl.NonValidatingFactory
    

提交回复
热议问题