Spring Boot Java Tutorial - REST API using PostgreSQL and JWT

preview_player
Показать описание
Learn to use Spring Boot and Java to create a complete REST API. We will use PostgreSQL as the relational database and Spring JdbcTemplate for interacting with that. Apart from this, we will add authentication using JWT (JSON Web Tokens).

⭐️ Course Contents ⭐️
⌨️ (0:00) Introduction
⌨️ (09:10) Project Setup & Creating Database Objects
⌨️ (23:07) Persisting User Information on Register
⌨️ (41:05) Login and Hashing Password
⌨️ (48:59) JWT Authentication
⌨️ (1:03:15) Adding New Categories
⌨️ (1:19:51) Category - Find & Update Functionality
⌨️ (1:28:50) Adding Category Transactions
⌨️ (1:42:38) Transaction - Find and Update
⌨️ (1:51:29) Deleting - Category & Transactions
⌨️ (2:00:50) CORS & Testing from Web Client
⌨️ (2:07:22) Summary and Code

Рекомендации по теме
Комментарии
Автор

In case some of you have experienced an error when trying to register/login an user with the message: let me tell you that all you have to do is add this dependency, that was not included in this tutorial due to the JDK version being used:

<dependency>


<version>2.3.0</version>
</dependency>

To put it simple, what this error is telling us is that a key dependency is missing so after a little research all you have to do is add that new dependency to your pom.xml and everything should be ok.

The explanation is the following: I was using JDK 11 and in Java 11 they have completely removed that dependency from the JDK so you'll need to include it in your project.

Artificial_Intelligence_AI
Автор

This tutorial is beyond greatness! Very clean, absolutely no distraction and straight to the point with high quality code! I will learn a lot from this in the near future!

andylib
Автор

Excellent content. Concepts are explained very well. The only problem with this video is it's not beginner complete. This video is much useful for people who have rest api background in java or are already familiar with how spring boot does dependency injection using spring bean creation using xml files. It also assumes that the viewer is familiar n-tier architecture. The tutorial doesn't explain the internal DB connection pools that spring boot provides by default. It would be great if there's a pre-requisite video to this explaining the concepts of spring, spring jdbc template and customizing the default HikariCP connection pool provided by spring boot. One more additional tutorial to this would be RestControllerAdvice and the concepts behind it in detail. Having said that this is an excellent tutorial that explains all the important concepts well.

Ramchandra-fpty
Автор

watch the video with speed of 0.75 to listen more clearely

mohamedadbib
Автор

Thanks a lot for this! This is the only tutorial I found that explains JWT step by step in an understandable way. One shouls see this first before going to spring-boot security built in implementations.

ioannisvisvikis
Автор

Awesome, would love to see more spring Boot tutorials

riteshghorpade_rmg
Автор

After watching this video, I understand the importance of JpaRepository

psharma
Автор

For anyone else that gets an error for registering after implementing BCrypt, the problem is from the DB, at the password column from users where the maximum chars are 30, by BCrypt the password being encrypted it will have more than 30 chars so you will have to update the column password with more characters "password varchar(255) not null"

xYoyoq
Автор

i just don't get how Indian guys get so good at programming. thanks :D

kresnofatihimani
Автор

Great! We need more java and spring ❤️

anirudh
Автор

That is pretty AWESOME! Thanks for your tutorials. Exactly what I needed.

emberogames
Автор

Amazing tutorials. Completely worth the time and efforts. Great Work. Kudos to the team!!!

niteshnijhawan
Автор

Very well done! Would love to see more about hosting this in a live aws environment, setting up monitoring tools, etc. Great tutorial!

powergm
Автор

This is an pure Indian acent voice yeah 🇮🇳

mydriftenglish
Автор

Great content, This is exactly what i want to know.

shyiamnot
Автор

Finally, a one with JDBC thank you very much 😁😅

anamixnetwork
Автор

Thanks you! Jwt SpringBoot is so good! - it is my favarite part in my video and web development

loizenai
Автор

Awesome I will use this api for angular practice.

ez_mod
Автор

Thanks for the tutorial.
I am facing one issue though:
I am using react and spring boot+ spring security.
Facing the cors issue while using the fetch API call.
Anyone aware of how to call fetch method for endpoints secured with spring security
Note: If I remove the spring security dependency, the fetch API call is successful.

sanketwakhare
Автор

awesome, but please provide a subtitle thank you!

sutantoadinugroho