0

I configured the database in application.properties with the spring.datasource.url property, using the DATABASE_URL that I see when running heroku config from terminal

I get "Postgresql Driver Claims to not accept JDBC URL" error when running the app from IntelliJ.

Tried solutions in thispost, but none of them helped.

  • Having a reference is nice, but you still need to tell us specifically what *you* did, and what the result was. – jjanes Nov 28 '22 at 20:25

1 Answers1

0

I am deployiong on Heroku Postgres. I found a working solution in Heroku docs.

The correct jdbc url can be accessed through the heroku cli in your terminal:

heroku run echo \$JDBC_DATABASE_URL

I put the url into src/main/resources/application.properties like this:

spring.datasource.url=<your jdbc url>