💥 How to build CRUD REST APIs using Spring Boot, JPA/Hibernate, and the PostgreSQL database 💥

preview_player
Показать описание
In this tutorial, I explained how to build CRUD REST APIs using Spring Boot, JPA/Hibernate, and the PostgreSQL database. We will use the latest version of Spring Boot in this tutorial.

Please make sure that the PostgreSQL database is installed on your machine.

Check out these below links to download and install a PostgreSQL database on your machine.

It's very easy to configure Spring Boot to use the PostgreSQL database.

=== Spring Boot ===
. Project Overview
. How we are going to Create Project
. Architecture
. Tool and Technologies
. Steps for Development
. Testing Using Postman

Save API
=====================
Method: Post

Find ALL API
=====================
Method: GET

Find By ID API
=====================
Method: Post

Update API
=====================
Method: PUT

Delete API
=====================
Method: Delete

Script For Create user_details table
=========================================
CREATE TABLE user_details (
id int,
username varchar(100) DEFAULT NULL,
email varchar(100) DEFAULT NULL,
password varchar(100) DEFAULT NULL,
PRIMARY KEY (id)
);

#SpringBoot #javatechsolutions #springboot3 #postgres #postgresql #java17 #java #restapi #restfulapi #fullstackdevelopers #freecourse

Join this channel to get access to perks:

spring boot
java
java 17
spring boot3
postgreSQL
crud operation
connecting postgresSQL with Spring Boot
JPA Hibernate tutorial
PostgreSQL database tutorial
REST API development
CRUD operations
API integration
Database management
Backend development
Java programming
Web service implementation
Рекомендации по теме
Комментарии
Автор

Hi sir i downloaded your project from git and executed in my local but when try to save its saving empty record in database and even if manullay inserted the record in database when i tried to fetch its giving empty record only any idea on this

lenintemp
Автор

One doubt. So the UserRepository we created is an Interface. And in UserService, we are creating it's object. Will this not give an error? Can we create an object for the interface?

anandalakshmir
Автор

Also, We are not using the @ResponseBody annotation or ResponseEntity<> as return type in Controller methods. Will this not throw error?

anandalakshmir
Автор

"No static resource Charges/save."

divyanshiagrwal