Spring Boot + Spring Security with JPA authentication and MySQL from scratch - Java Brains

preview_player
Показать описание
Let’s setup a brand new Spring Boot project from scratch with Spring Security that works with database authentication using JPA and connects to a MySQL database. I’ll walk you step-by-step through how to get Spring Security to connect to the MySQL instance using JPA and authenticate users against the user information stored in the database.

#JavaBrains #BrainBytes #HowTo #SpringSecurity #Spring #SpringBoot #Java #Tutorial
Рекомендации по теме
Комментарии
Автор

Highly important guys.. at @01:14
be aware, the role field must be save with "ROLE_" prefix in the DB, (dont know the reason). I wasted alot of time because I entered the authorization role mapping value which is without the "ROLE_" prefix.
thank for the tutorial sir, BIG LIKE!

haimmichalashvili
Автор

Your way of explaining complicated concepts in a simple manner is outstanding! Thank you so much!

sarthakgupta
Автор

This is what is required on YouTube. Kudos sir
Bring full stack courses also. I bet 1 million is not far away then.🙌

kuljeetkumar
Автор

I am big fun of your teaching. I don't even want to go for other resources unless I don't find in Java Brains.
I really appreciate your contribution to my life. You are such important to me."live long and God bless you."

brhaneweldeslase
Автор

Fantastic tutorial, probably the clearest tutorial I've ever watched on a pretty complicated subject. Thank you very much!

Sausty
Автор

I saw the whole spring security basic videos, everything till now was explained well. anyone can easily understand these spring security topics. Thank you for your time and effect

manojkanna
Автор

Sir, you have made Spring Security so easy to understand. Thank you so much for your efforts😀

HanilKathuria
Автор

I've been struggling with Spring Security for days. Your tutorial made me able to install an authentication system on my app in two hours. THANKS!

Sebriniel
Автор

wow, these are the best tutorials on Spring Security I have ever found on the Internet. Please keep up the good job :)

damianw
Автор

Clearest tutorial with minimum time. Easy to understand. Thank you for wonderful lectures sir.

monishad
Автор

Thanks, this is the clearest from scratch video i found so far..so difficult to explain yet you made it look easy

midhunma
Автор

By Far the Best Explanation of Spring Data JPA with Spring Security...got many concept cleared out of this Tutorial

AnantaAkash.Podder
Автор

Yes Correct, read query many times for authentication/authorization, we might consider using LDAP. LDAP has fast read query.

SushilKumarBhaskar
Автор

Epic! Thank you!
Please talk about integration with JWT

francogb
Автор

Nice One Koushik, keep the good work up. With addition to all the information, would like to add, spring by default adds "ROLE_" to whatever the role we are trying to check for the user. Thats why Kaushik has inserted ROLE_USER in the roles column of the user table. Now why we are trying to access different urls, spring check the role using the class which get called from the overriden method configured having HttpSecurity as parameter. Check the implementation for the method hasRole in the method chaining.

priyankjoshi
Автор

Great Job Koushik!!! I like your teaching style and JavaBrains has been my main source of learning SpringBoot and java related stuff lately!!

tsegaighebremedhin
Автор

if @Autowired UserDetailsServices in SecurityCnfiguration is showing error it is due to multiple implementations of that interface spring is confused which one to choose.
solutiion :add @Primary annotation above MyUserDataService class that will give preference to your implementation

umairkhan
Автор

SIR the whole day I've been trying to get this to work... then 10 minutes in this video and it works now. I really thank you a lot!!!

vurihur
Автор

I've watched almost every single video I could find on this subject and this was the clearest and most helpful and actually worked.

Thank you for your help!

TomosLeggett
Автор

You are doing a great service by sharing all these...no praise will ever be enough..👍👍👍

bibekdas