bydloden
Cannot connect PostgreSQL to Java project (Ebean, JDBC)
Yeah, thanks. Solved it, here's solution:
1) Need both gradle dependencies:
implementation("org.postgresql:postgresql:42.6.0")
implementation("io.ebean:ebean-platform-postgres:13.15.0")
2) either add driver: org.postgresql.Driver
to application.yaml
or add Class.forName("org.postgresql.Driver");
to the main code.8 replies