How to Connect Spring Boot Project with PostgreSQL Database in VSCode

Java Spring Boot Tutorial…

Geno Tech
3 min readJun 14, 2023

In this tutorial, I will guide you on how to connect Spring Boot and PostgreSQL. Previously I have shown you how to perform CRUD operations with Spring Boot and MySQL.

Let us follow the steps below.

Prerequisites

  • Install Spring Boot into VS Code
  • Install PostgreSQL - Download the setup from here.
  • Install pgAdmin 4 - You can download it from here

Create a new Spring Boot Project

Step one is to create a new Spring Boot project. Here is an example;

Add the required Dependencies to the Pom.xml

--

--

Geno Tech

Software Development | Data Science | AI — We write rich & meaningful content on development, technology, digital transformation & life lessons.