Proxy Design Pattern

In this article, we’ll continue our Java design patterns study by looking at the Proxy Design Pattern. It is one of the Structural Design Patterns, and we can find it in practically in JDK and Spring frameworks. Using a Java application, we’ll figure out what this pattern is all about. After that, we’ll look at … Read more

Flyweight Design Pattern

In this article of Java Design Pattern, we will look at the Flyweight Design Pattern. It is one of the Structural Design Patterns. We’ll learn about what this pattern is all about. After that, we’ll look at the pattern’s design advantages, usage, and disadvantages. Flyweight Design Pattern The flyweight design pattern is applied when we … Read more

Decorator Design Pattern

In this article, we’ll continue our java design pattern study by looking at the Decorator Design Pattern. It is one of the Structural Design Patterns.We’ll learn about this pattern is all about. After that, we’ll look at the pattern’s design advantages, usage, and disadvantages. Decorator Design Pattern The decorator design pattern is used to change … Read more

Facade Design Pattern

In this series of Java design pattern, we will look at the Facade design pattern. It is one of the Structural Design patterns that simplifies the interface to a library, framework, or any other complex set of classes. Facade Design Pattern A Facade design pattern is a structural design pattern that simplifies the interface to … Read more

Prototype Design Pattern

In this article of Java design pattern, we will look at the Prototype Design Pattern. The Prototype pattern is part of the Creational Design Pattern. Prototype Design Pattern The prototype design pattern refers to duplicating an item while considering performance. We classify this design pattern as a creational pattern, since it gives one of the … Read more

Spring Security CORS Filter

In this article, we will look at the Spring Security CORS Filter and how we can configure this filter in our application. Spring Security CORS Filter Before we get into more details of Spring Security CORS filter, it’s really important that we understand what is CORS and what it brings to the Spring Security landscape … Read more

Spring Security CSRF Token

In this article of Spring Security tutorial, we will inspect the Spring Security CSRF token or simply known as csrf token. We will look at the different options available with Spring Security CSRF. Spring Security CSRF Token CSRF is an attack which tricks customer to submit a malicious request. With the help of CSRF, it … Read more

Adapter Design Pattern

In this article of design patterns, we will look at the Adapter design pattern. We will see its various use cases with some example and finally we will have the Adapter design pattern in Java. It is one of the structural patterns and we can find its uses in almost all the libraries in JDK … Read more

Spring WebClient

IN this article, we are going to discuss the Spring WebClient. Spring WebClient is a reactive web-client which was introduced as part of Spring 5. Spring WebClient In Simple terms, Spring WebClient is a non-blocking reactive client which helps to perform HTTP request. They introduced this as part of Spring 5. WebClient API’s are introduced … Read more

Builder Design Pattern

In this series of design pattern, we will inspect the Builder Design Pattern.We will continue our learning of design patterns and cover the Builder Pattern. Builder Design Pattern The Builder design pattern is part of the creational design patterns family and helps us build complex Java object in an easy and readable manner. We can … Read more

Abstract Factory Pattern

In this tutorial, we will continue our learning of design patterns and cover the Abstract Factory Design Pattern or Abstract Factory Pattern.It is one of the creational patterns and we can find its uses in almost all the libraries in JDK, Spring framework.We will understand what this pattern is about using a Java application. We … Read more

Singleton Design Pattern

In this article of Java design patterns, we will continue our learning of design patterns and cover the Singleton Design Pattern. We will understand what this pattern is about using a Java application. We will then see the design benefits of the Singleton Design Pattern. Singleton Design Pattern The Singleton Design Pattern is a part … Read more

Two Factor Authentication with Spring Security

In this article of spring security tutorials, we will look at the two factor authentication with Spring security. We are going to use the soft token with Spring Security. Two Factor Authentication with Spring Security It’s always a good practice to add some additional layer of security for your application, especially with every changing security … Read more

Factory Design Pattern

In this article of our design pattern series, we will continue our learning of design patterns and cover the Factory Design Pattern in Java. We will take a look at the different uses of factory design pattern and how to implement it in Java. 1. Factory Design Pattern The Factory design pattern is one of … Read more

Java Design Patterns

In this article, we are going to understand what is a design pattern and popular Java Design Patterns, the GoF Design Patterns, what makes them so important to software components design, and what are the different categories of the design patterns in terms of Creational, Structural, and Behavioral design patterns. 1. Java Design Patterns The … Read more

Spring Method Security

In this article, we will look at the Spring method security. The method level Spring security allows us to add security to individual methods within our service layer. Spring Method Security In simple terms, Spring method security allows us to support / add authorization supports at the method level. On a high level, we can … Read more

Queue Data Structure

In this article, we are going to understand Queue Data Structures. We will go over the benefits and operations of the queue data structure. We will dive into their visual representation and at last, we will see how to implement Queue in Java. 1. Queue Data Structure A stack is a FIFO (first-in-first-out) principle-based data … Read more

Stack Data Structure

In this article, we are going to understand Stack Data Structures. We will go over the benefits and operations of the data structure. We will dive into their visual representation and at last, we will see how to implement Stack in Java. 1. Stack Data Structure A stack is a LIFO (last-in-first-out) principle-based linear data … Read more

Custom Access Decision Voter

In this article, we will look at the Custom Access Decision Voter in Spring Security. We will look at the steps and configurations to create Spring Security custom access decision voter. Custom Access Decision Voter Spring security is a robust framework and comes with a lot of default which are sufficient for most the use … Read more