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

Loading Initial Data with Spring Boot

In this article, we will look at options for loading initial data with Spring Boot. We will look at the different options available with Spring Boot. Loading Initial Data with Spring Boot Spring Boot makes it really easy to manage any type of database changes. It will search for entities in our packages and create … Read more

Spring Security Cache Control Headers

In this article of Spring security tutorial, we will inspect the Spring Security cache control headers. We will look at the default behavior of Spring security along with a way to change the cache control headers in Spring Security. Spring Security Cache Control Headers Security involves a lot of precautions to save the data. There … 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

Spring Boot RestTemplate

In this article of Spring Boot, we will inspect the Spring Boot RestTemplate or Spring RestTemplate. It makes us easy to consume and creating a Spring Boot RESTful web service. Spring Boot RestTemplate Consuming and creating a Spring Boot RESTful web service requires a lot of boiler-plate code. The Spring Boot RestTemplate makes it easy … Read more

Spring Boot With H2 Database

In this article, we will see how to use Spring Boot with H2 Database.Just like other databases, there’s full intrinsic support for it in the Spring Boot ecosystem. Spring Boot with H2 Database H2 database is a relatively new and an open-source, in-memory relational database management system that is written in Java. Just like other … 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

Custom Filter in Spring Security

In this article, we will look at adding a custom filter in Spring Security. We will see the various use cases to add a custom filter in Spring security along with what are the different options to add a filter with Spring Security. 1. Custom Filter in Spring Security As we know that Spring security … Read more