03 Create User Login & Registration with Spring Security - Spring Boot

preview_player
Показать описание
Subscribe:

Spring boot video playlist:

#java #springboot #LoginRegistration #authentication

Video 03: Create User Login & Registration with Spring Security - Spring Boot

This tutorial will demonstrate the process to create user authentication. User login and registration functionality using Spring Security in Spring boot application. User will be able to login and register to Spring boot application in MySQL database and hibernate mappings.

*****************************************************
Course Link (03 Create User Login & Registration with Spring Security):

Course Playlist Link:

*****************************************************
Spring Hibernate Course link:

Spring Boot course URL:

******************************************************

We will use – Spring Boot with Spring 5, Java 8, Spring Security and Maven. For complete instructions, you can go through the below video.

Below steps are involved in this tutorial:

1. Create Database tables and sample data for Login & Registration
2. Define models for Database tables.
3. Declare Spring Bean for BCryptPasswordEncoder. (BCryptPasswordEncoder will be used for password encoding)
5. Override Spring Security Default Configurations using Java Config.
6. Define controllers which will show Login and Registration page to user.
7. Generate HTML pages for Login and Registration
Рекомендации по теме
Комментарии
Автор

Can u do the same registration and login frontend react and backend spring boot?

franksweethan
Автор

Thanks, Ankit
it is a great tutorial

ninosalkaton
Автор

When I right click on template, I am not getting option of selecting HTML file after selecting new.Can you tell me where I will be able to find it?

naisargioza
Автор

So ... how can I get the userid in the user table authorizing, please!

DuyNguyen-hhjo
Автор

where is sign-up controller/service for saving new user data into DB?

viorelcasapu
Автор

hello, I am new to the spring boot and I'm trying to create user login page for I have downloaded the source code and the sql file from your tutorial then I have run queries as shown in the video after that I tried to import that source code in my sts but after importing it is different than you video there is no java resource in that so can you please tell me how to do that please

aishwaryakorde
Автор

i get this error when running :Could not resolve placeholder 'spring.queries.users-query' in value

eamonmac
Автор

Hi, you have mentioned that we can find the source code on course link. But, it is showing The requested URL was not found.

prashanthiprashu
Автор

I need to implement this in react js, how i can remove model and view how can i directily cross origin.

ravishankarpuri
Автор

How to put images for interfaces?
I created images folder in templates.
Ex: Images path -
<img src=“images/logo.png”>
I given my images path.

But my images are not showing.
Why???
Please tell me.
What to do show my images in interfaces?

kavithmaduja
Автор

Sir, can you help me, my register page is not working, it is showing, white label error with request method post not allowed

nehabudhiraja
Автор

i'm getting an error like this .. "Consider revisiting the entries above or defining a bean of type 'javax.sql.DataSource' in your configuration." .. can anyone help me please

saiavinash
Автор

Great tutorial. I want to build an application where my front end in angular 6 and backend in spring boot and I want to design the login and registration in my app. I understood the working with JSP but a little bit confusion about how it works with angular 6. do you have any project so I can use this.
Please guide me, Sir.
Thank you in advance.

roshankasliwal
Автор

Now how to do view all users in HTML page??

kavithmaduja
Автор

Hi great tutorial thank you so much for sharing please i have a problem when i want to do spring.queries.users-query it's inappropriate can you help me please ?

zikoalexis
Автор

When i click login to redirect home is not work.
The error is :

Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.

Mon Apr 08 17:28:59 EEST 2019
There was an unexpected error (type=Not Found, status=404).
No message available

mincualexandru
Автор

This tutorial is really insightful
I have one doubt though.
Suppose I want the user to have only one role and hence I create role_id column in the user table itself(and not have the user_role table).
Could you please tell how I could configure my SecurityConfigurer

manojdeshpande
Автор

it a very useful tutorial. I want to build up an app where my front end is in nodejs and backend in spring boot. I want to design a login/registration where the spring boot should have authentication as well as authorization. how do we build it up

arnabsarkar
Автор

Hi Ankit it would ne helpful if you update the code for forgot password also

mahag
Автор

I have a problem. When I try to login after registration, I get an "Email or Password is invalid" error. while the username and password in same in my database.

aparnaagrawal