Learn Spring Boot

News

Redirect to Different Pages after Login based on User Roles

In the real-life scenario, most software applications work with user-based authentication. When the user accesses the website url in the Spring boot application, the user is redirected to the authentication login page. After successful login, the user is redirected to different dashboard based on logged in user roles. In this

Multiple Login Pages using Spring Boot Security – user, admin

In real-time applications, we needed to have different login pages to be accessed within the same application. One for the regular consumer and the other for the administrative functions. In this post, we’ll see how to create two login pages, one for regular users and the other for admin url. In designing special purpose applications, a login page is required to authenticate users to access the application. We need another url

Role based Multiple Dashboard Pages access from a Login Page

In spring boot security, the users are allowed to access those features based on the user roles in the Spring boot security application. Spring boot security enables the authentication of web pages based on user roles. In this post, we will see how to create a custom login page, validate

Unauthorized Access Denied Error Page in Spring Boot Security

Spring boot security protects the websites from unauthorized access. If the web page url is directly accessed from the browser, the 403 Forbidden/Access Denied error message will be shown.. In this article, we’ll see how to configure this 403 Forbidden / Access Denied error page. If an url is accessed

Encode, Decode, Validate using BCryptPasswordEncoder in Spring Boot Security

In spring boot, BCryptPasswordEncoder is one of the password encoders used in the spring boot security module for password encoding and password decoding or validate. BCryptPasswordEncoder is using the BCrypt algorithm. BCrypt is a one-way encryption algorithm. In this article, we’ll see what the BCryptPasswordEncoder is and how to encrypt

Java Object to JSON String using JSON-B

Step 1 – Java Object to JSON String using JSON-B Step 2 – JSON String to Java Object using JSON-B Step 3 – JSON String to Java Object Array using JSON-B Step 4 – JSON String to Generic Java Object using JSON-B Step 5 – How to Serialize and Deserialize

JSON String to Java Object using JSON-B

Step 1 – Java Object to JSON String using JSON-B Step 2 – JSON String to Java Object using JSON-B Step 3 – JSON String to Java Object Array using JSON-B Step 4 – JSON String to Generic Java Object using JSON-B Step 5 – How to Serialize and Deserialize

JSON String to Generic Java Object using JSON-B

Step 1 – Java Object to JSON String using JSON-B Step 2 – JSON String to Java Object using JSON-B Step 3 – JSON String to Java Object Array using JSON-B Step 4 – JSON String to Generic Java Object using JSON-B Step 5 – How to Serialize and Deserialize

JSON String to Java Object Array using JSON-B

Step 1 – Java Object to JSON String using JSON-B Step 2 – JSON String to Java Object using JSON-B Step 3 – JSON String to Java Object Array using JSON-B Step 4 – JSON String to Generic Java Object using JSON-B Step 5 – How to Serialize and Deserialize

How to Serialize and Deserialize Enum with JSON-B / Yasson

Step 1 – Java Object to JSON String using JSON-B Step 2 – JSON String to Java Object using JSON-B Step 3 – JSON String to Java Object Array using JSON-B Step 4 – JSON String to Generic Java Object using JSON-B Step 5 – How to Serialize and Deserialize