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

  Рет қаралды 4,066

Java Tech Solutions

Java Tech Solutions

Күн бұрын

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.
www.postgresql...
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
=====================
URL: localhost:8080/api/save
Method: Post
Find ALL API
=====================
URL: localhost:8080/api/findAll
Method: GET
Find By ID API
=====================
URL: localhost:8080/api/findById
Method: Post
Update API
=====================
URL: localhost:8080/api/update
Method: PUT
Delete API
=====================
URL: localhost:8080/api/deleteById
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)
);
Source Code: github.com/Jav...
#SpringBoot #javatechsolutions #springboot3 #postgres #postgresql #java17 #java #restapi #restfulapi #fullstackdevelopers #freecourse
Join this channel to get access to perks:
/ @javatechsolutions
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

Пікірлер: 15
@anandalakshmir1273
@anandalakshmir1273 4 ай бұрын
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?
@JavaTechSolutions
@JavaTechSolutions 4 ай бұрын
In spring it's a dependency injection
@sushantabanerjee6901
@sushantabanerjee6901 7 ай бұрын
❤❤
@JavaTechSolutions
@JavaTechSolutions 5 ай бұрын
Thank
@razatech22
@razatech22 8 ай бұрын
Use multiple entities in this project
@JavaTechSolutions
@JavaTechSolutions 8 ай бұрын
What is your need?
@lenintemp
@lenintemp 2 ай бұрын
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
@JavaTechSolutions
@JavaTechSolutions 2 ай бұрын
I can help but I need the logs
@anandalakshmir1273
@anandalakshmir1273 4 ай бұрын
Also, We are not using the @ResponseBody annotation or ResponseEntity as return type in Controller methods. Will this not throw error?
@JavaTechSolutions
@JavaTechSolutions 4 ай бұрын
Response entity bind with rest controller annotation
@krupad1483
@krupad1483 4 ай бұрын
I am getting error
@JavaTechSolutions
@JavaTechSolutions 4 ай бұрын
This is not sufficient to tell anything
@divyanshiagrwal5216
@divyanshiagrwal5216 4 ай бұрын
"No static resource Charges/save."
@JavaTechSolutions
@JavaTechSolutions 3 ай бұрын
Not able to understand
Un coup venu de l’espace 😂😂😂
00:19
Nicocapone
Рет қаралды 8 МЛН
🍉😋 #shorts
00:24
Денис Кукояка
Рет қаралды 4 МЛН
Bike Vs Tricycle Fast Challenge
00:43
Russo
Рет қаралды 112 МЛН
Full Stack + React + Spring Boot + PostgreSQL
2:16:13
CodeforTechSolutions
Рет қаралды 1,2 М.
Elon Musk's "WeRobot Event" Just Showed Us The FUTURE Of AI
25:17
Microservices-Java 08 - Configurando ExceptionHandler e criando o Microservice Cambio-Service
27:02
Elon Musk Introduces Tesla Robots
4:40
MaDz Gaming
Рет қаралды 150
8 AI Tools That Will Make You Rich in 2025!
15:58
Aurelius Tjin
Рет қаралды 11 М.