Spring Framework

This tutorial will teach you how to migrate from the depricated WebSecurityConfigurerAdapter towards the content-based security configuration. Spring Security allowed customizing HTTP security by extending a WebSecurityConfigurerAdapter class. This customization included user authorization, user authentication, etc. But in Spring Security 5.7.0-M2 the WebSecurityConfigurerAdapter is deprecated. This is because Spring Framework developers encourage users to move…

Read More (Solved!) Deprecated WebSecurityConfigurerAdapter

In this article, we will cover the basics of Aspect-Oriented Programming (AOP). You will learn how to use AspectJ to provide different AOP advices to Spring Boot applications to support cross-cutting issues like logging, profiling, caching, and transaction management and finally we will do a practical implementation to record user operations using Spring Boot AOP.…

Read More A guide to Spring Boot AOP to Record User Operations

In this lesson, you will learn how to read URL query string parameters in your Spring MVC web application.   @RequestParam annotation Let’s assume that we need to create a method that needs to return a list but is limited to a certain number. To make our method read URL Query String Parameters, we will…

Read More Spring Web MVC – Reading URL Query String Parameters

In this tutorial, you will learn how to pass information from your Controller class to the View using the Spring MVC ModelAndView object. In previous lessons, we discussed how to use Model and ModelMap for the same purpose – to pass properties from Controller to the View.  The ModelAndView class, you will also use to pass…

Read More Spring Web MVC – The ModelAndView Object

In this tutorial, you will learn to configure your Spring Boot Web MVC application support Thymeleaf templates. Thymeleaf Maven Dependency To make your Spring Boot Web MVC application support Thymeleaf templates, you will need to add one additional dependency to the pom.xml file. <!– https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-thymeleaf –> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency> Templates Folder In the Spring…

Read More Spring Web MVC – Configure Thymeleaf Support

In this tutorial, you will learn how to configure the Spring Boot Web MVC application to support JSP(Java Server pages) and JSTL(JSP Standard Tag Library). Video Tutorial Maven Dependencies To configure your Spring Boot application to support Spring MVC, JSP and JSTL add the following maven dependencies to the pom.xml file. Spring Web The following…

Read More Spring Web MVC – Configure JSP Support

This tutorial is a high-level overview of the Spring Web MVC framework. Below is a high-level diagram of how things work in a Spring MVC Web application built with Spring Boot.    Most online tutorials or books will show you a similar diagram that is designed around the Dispatcher Servlet. Because this Dispatcher servlet is…

Read More Spring Web MVC – Overview for Beginners

In this tutorial, we will read user data from AWS RDS with an access token. You can have a look at the following tutorials before moving ahead. Build and deploy a Serverless Spring Boot Web Application with AWS Lambda AWS Lambda with Spring Boot – A Simple GreetMe Example Amazon Cognito User Authentication in Spring…

Read More Reading user data from AWS RDS with an access token

In this article, you will learn about RabbitMQ and explore its common use cases. I will also guide you step-by-step on how to implement messaging using RabbitMQ in a Spring Boot application. By the end of this article, you will know how to publish and consume messages in a queue. So let’s get started! What…

Read More Messaging with RabbitMQ in Spring Boot Application