PostgreSQL JDBC Driver Maven Dependency

This page gives you a quick reference to get PostgreSQL JDBC driver for Maven or Gradle projects. You can also download PostgreSQL JDBC driver, the link given at the "Download JAR File" section.

The PostgreSQL JDBC driver is used to connect with the PostgreSQL database using the JDBC API.
Learn complete JDBC at https://www.javaguides.net/p/jdbc-tutorial.html

PostgreSQL JDBC Driver JDBC 4.2 » 42.2.8

Java JDBC 4.2 (JRE 8+) driver for PostgreSQL database. This Maven Central link will tell you which is the latest version of the PostgreSQL JDBC artifact.

PostgreSQL JDBC Driver Maven Dependency

The PostgreSQL Driver is available on maven central. Copy below PostgreSQL JDBC driver maven dependency and paste in your project pom.xml file:
<!-- https://mvnrepository.com/artifact/org.postgresql/postgresql -->
<dependency>
    <groupId>org.postgresql</groupId>
    <artifactId>postgresql</artifactId>
    <version>42.2.8</version>
</dependency>

PostgreSQL JDBC Driver Gradle Dependency

Copy below PostgreSQL JDBC driver Gradle dependency and paste in your project build.gradle file:
// https://mvnrepository.com/artifact/org.postgresql/postgresql
compile group: 'org.postgresql', name: 'postgresql', version: '42.2.8'

Download JAR File

Check for Latest Release

Reference


Free Spring Boot Tutorial | Full In-depth Course | Learn Spring Boot in 10 Hours


Watch this course on YouTube at Spring Boot Tutorial | Fee 10 Hours Full Course

Comments