Mr.Humorous 🥘

Nothing is impossible, the word itself says 'I'm possible'❗️ 💪

Spring Web Contexts

Understand how to organize application contexts

1. Introduction When using Spring in a web application, we have several options for organizing the application contexts that wire it all up. 2. The Root Web Application Context Every Spring webapp...

Using a Custom Spring MVC’s Handler Interceptor to Manage Sessions

Customize Handler Interceptor to Manage Sessions

1. Introduction In this tutorial, we’ll use Spring MVC’s handler interceptor to emulate a session timeout logic by setting custom counters and tracking sessions manually. To understand the basics ...

Find The Registered Spring Security Filters

Figure out what Spring Security Filters are registered

1. Overview Spring Security is based on a chain of servlet filters. Each filter has a specific responsibility and depending on the configuration, filters are added or removed. In this tutorial, we...

A Custom Filter In The Spring Security Filter Chain

Create a custom security filter

1. Overview In this quick article, we’ll focus on writing a custom filter for the Spring Security filter chain. 2. Creating the Filter Spring Security provides a number of filters by default, and ...

An Introduction to ThreadLocal in Java

Understanding ThreadLocal

1. Overview ThreadLocal allows storing data individually for the current thread and simply wrap that data within a special type of object. 2. ThreadLocal API The TheadLocal construct allows us to ...

How LinkedHashSet Works Internally

Understanding LinkedHashSet

1. Overview LinkedHashSet is an extended version of Hashset. HashSet: doesn’t follow any order uses HashMap internally to store elements LinkedHashSet: maintains insertion order uses L...

ArrayList vs. LinkedList vs. Vector

Differences between List implementations

1. List Overview List is an ordered sequence of elements. Whereas, Set is a set of elements which is unordered and every element is unique. 2. ArrayList vs. LinkedList vs. Vector Vector: simi...

Spring ContextLoader and DispatcherServlet Concepts

Understanding contextLoaderListener and dispatcherServlet

1. Overview In Spring Web Applications, there are two types of container, each of which is configured and initialized differently. One is the “Application Context” and the other is the “Web Applica...

The Java Native Keyword and Methods

Introduction to Java Native Keyword

1. The native Keyword in Java Simply put, this native keyword is a non-access modifier that is used to access methods implemented in a language other than Java like C/C++. It indicates platform-de...

Guide to Spring Session

Spring Session Introduction

1. Overview Spring Session has the simple goal of free up session management from the limitations of the HTTP session stored in the server. The solution makes it easy to share session data between...