Handling Execptions Global Level in Spring Webflux REST API

reactive spring

Recently in one of my Spring Webflux project, one requirement came to handle Exceptions at Global Level. So the question is why we need global handling of exception. The benefit of handling exception at global level is, we can maintain proper error code at one level, this way we will be avoiding duplicate codes inside our spring webflux REST API ... Read More »

Convert CIDR notation to IP Range in Java

Java

What is CIDR? CIDR stands for – Classless Inter-Domain Routing (CIDR), also called supernetting. It is a way to allocate Internet Protocol (IP) addresses by creating unique and more granular identifiers for networks and devices. The objective of CIDR was to address scalability issues with classful IP addresses based on three classes –– Class A – capacity is 16,581,375 IP ... Read More »

CVE-2021-44228 Spring Boot and Log4j2 Vulnerability

spring

What is CVE-2021-44228? CVE-2021-44228 is a vulnerability impacting all the applications written in Java and using the component Apache Log4j2 for logging. This vulnerability allows the unauthenticated remote code execution using the JNDI Lookup. Log4j2 is widely used directly or through dependencies in almost every Java application. These application includes almost all the enterprise level application and almost all the ... Read More »

Enable the access logs in Spring Boot for embedded tomcat server

spring

Access logs contains the information about the request received and response sent to the client. It contains all the important data which are required to analyze the type of request coming to the application. Below are the steps which is required to configure the tomcat access logs for the Spring Boot application. Settings in application.properties file These are the common ... Read More »

Create a custom favicon in Spring Boot application

spring

In this article, we will learn how to configure custom favicon in the spring boot application. Favicon is the iconic representation of any website. It is placed in the address bar of any web browser. Spring boot provides option to create custom favicon for your website. First create a favicon for your website, place it in the resources directory of ... Read More »

Configure Logback in Spring-Boot Application for Logging

spring

In this article, we will learn how to configure logback in the spring boot application for logging and how to configure Logback with specifications including console and file output separately, and here we will also learn to use the rolling file policy to avoid generating large size log files and after a certain threshold size limit it will be back ... Read More »

Install Python on macOS

python

Python is the most popular programming language. Python is used for web development, Data Science, Machine Learning, Artificial intelligence, Operating Systems, Mobile application development, and video games. It supports multiple programming paradigms, including structured (particularly procedural), object-oriented and functional programming. This article will guide you in installing Python on macOS through step by step instruction. How to Install Python on ... Read More »

Install Python on Linux

python

Python is the most popular programming language. Python is used for web development, Data Science, Machine Learning, Artificial intelligence, Operating Systems, Mobile application development, and video games. It supports multiple programming paradigms, including structured (particularly procedural), object-oriented and functional programming. This article will guide you in installing Python through step by step instruction. How to Install Python on Linux (Ubuntu) ... Read More »