Learn Spring Boot

News

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

Converting JSON String to Java Object Array is performed using JSON-B in spring boot application. The conversion JSON String to Object in spring boot is explained in detail in the post. In this post, we can see about JSON-BINDING, which is the standard for working between the java object and

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

Serialize and Deserialize Enum with JSON-B / Yasson is performed in java using json-b or yasson serialization and deserialization. Java enum is a user defined data type that is serialize or de-serialize using the json-b as like any other variable. Json binding has recently been introduced to java as part

How to Validate Path Variable in Spring Boot

How to Validate Path Variable in Spring Boot How to Validate Request Parameters in Spring Boot How to Validate Request Body in Spring Boot How to Validate Request Headers in Spring Boot How to Validate Spring Boot Bean Programmatically or Manually How to Customize Default Error Message in Spring Boot