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, you will learn how to secure access to User’s Data in RDS using Lambda Authorizer. First, the Lambda Authorizer function will authenticate the caller by validating JWT using nimbus-jose-jwt library. After that, the Lambda Authorizer function will return an output object containing an IAM policy. The Authorizer will also return additional information…Read More Lambda Authorizer – Secure Access to User’s Data in RDS
In this tutorial, you will learn how to implement the API Gateway Lambda Authorizer in Java. You will also learn how to make Lambda Authorizer validate Authorization JWT. First, we will create an API using API Gateway then we will make lambda function as an integration point for the GET method of our resource. After…Read More API Gateway Lambda Authorizer Example in Java
In this article, we will learn about RabbitMQ and explore its common use-cases. We will also walk through a step-by-step guide to implement messaging using RabbitMQ in a Spring Boot Application and will see how to publish and consume messages in a queue using RabbitMQ. So, let’s begin learning! What is a RabbitMQ? RabbitMQ is…Read More Messaging with RabbitMQ in Spring Boot Application
Internationalization (i18n) is the process of making your application, services capable of delivering in different languages. In this tutorial, we will see how the Spring-Boot framework manages internationalization. Overview The internet has become global, which implies that any application or website can target millions of users around the world. Although half of the world’s population…Read More Spring MVC Internationalization Tutorial
In this tutorial, you will learn how to use the Spring Boot application with project Lombok. Overview No doubt Java is a wonderful language but one of the drawbacks of Java is its verbose nature. This makes it fairly complicated for everyday tasks such as composing a simple POJO object. For example, Constructing of methods…Read More How to use Project Lombok in Spring Boot
An important property of modern web apps is Resilience. In simple words, resilience is the ability of a system’s feature to fail gracefully without impacting the entire system. In the case of web apps, we want to make sure that the entire system will not be down if a remote service (a database, API Server)…Read More Enforcing Resilience in a Spring Boot App using Resilience4J
In this tutorial, you will learn how to call stored procedures in a Spring Boot RESTful API project that uses Spring Data JPA. Using a stored procedure to execute parts of the application logic in the database is a widely used approach in huge, data-heavy applications. A stored procedure is a group of predefined SQL…Read More Calling a Stored Procedure in Spring Boot REST with JPA
This tutorial is the fifth in a series on Reactive Programming in Java and Spring Framework. In this tutorial, we will develop a simple REST API using Spring Web flux. To completely understand this tutorial, you must have followed the previous one and must have knowledge on how to develop a REST Controller in a…Read More Developing a REST API using Spring WebFlux.
Multiple data source implementations are very crucial in instances where we want to secure the application from vulnerabilities such as a database failure. This will ensure that the application can still function even if part of the database went down. This tutorial will use student and course entities to demonstrate how multiple data sources can…Read More Multiple Datasources in Spring Application
It will be very difficult for anyone to work with the reactive streams if they neither know how to create nor transform them. It will be clearly impossible to produce any useful program. As you may have guessed, in this tutorial, we will focus on the most common methods provided by Project Reactor to create,…Read More Important Spring Webflux Methods
This article is the third of a series on Reactive Programming. If you have not read the previous article, I would strongly advise you to do so. In this article, we will discuss how Reactive Programming is made possible in Spring. Spring WebFlux Spring WebFlux is the Spring project that makes Reactive Programming possible in…Read More Reactive Programming In Spring Framework
In this tutorial, you will learn how to use specification and predicate in Spring Data JPA using the Spring Boot RESTful API project. Spring Data JPA Specifications allow us to create dynamic database queries by using the JPA Criteria API. It defines a specification as a predicate over an entity. Spring has a wrapper around…Read More Specification & Predicate: Advance Search and Filtering in JPA
This tutorial will be part of our Series on Reactive Programming in Java and Spring Framework. If you have not read the previous article, I would strongly advise you to do so. This will help you to understand better as we go further. In the previous blog post, we discussed publishers and subscribers in Java.…Read More Reactive Programming: Creating Publishers and Subscribers in Java.
In this short article, we will discuss reactive streams in Java. This tutorial is the first of a series on reactive programming in Java and Spring Framework. It will lay down the basis that is required for the next tutorials. I am a big advocate of reactive streams and I find them very fun to…Read More Reactive Streams in Java