Whitelabel Error Page in Spring Boot | Complete Guide

Let’s learn about the Whitelabel error page in Spring Boot and how to customize or disable them. White label error pages are default behavior from Spring Boot. Like any other feature, We can customize this feature to great extent. What are Whitelabel error pages in Spring Boot? Depending on API client request or browser request,…

Customizing Exit Codes of a Spring Boot Application

Let’s take a look at exit codes in Spring boot and the various ways we can customize them. What is an Exit Code? In the UNIX shell, An exit code or sometimes known as a return code is a number from 0 to 255 by a process or an executable. These codes let the caller…

Spring Boot Database Initialization

Let’s learn all about database initialization in spring boot. We can create and populate a database in different ways. Even though it is common to do this manually, an automatic approach is not a bad thing. For example, Spring Boot offers Schema and Data initialization through the JPA module. We can control this behavior using…

Export to CSV file using Spring Boot

In this post, let’s look at how easy it is to export information from the database to a CSV file using Spring Boot and JPA. For this example, We are going to download data from tables using Spring JPA and write the response as CSV. Approach To demonstrate the export of data into a CSV…

Introduction to WebSocket with Spring Boot

Let’s take a look at how to add WebSocket support to a spring boot application. We will try to create a simple chat application. Note that this implementation does not use STOMP. What is WebSocket? The WebSocket protocol helps in establishing a full-duplex two-way communication between client and server over a single TCP connection. This…

Troubleshoot Auto-Configurations in Spring Boot Applications

In this post, we will take a look at how to troubleshoot auto-configurations in Spring Boot applications. What are Auto-Configurations? Spring boot autoconfiguration is where the magic happens. The auto-configuration tries to automatically configure your application based on what’s in the classpath. For example, the h2 database jar in classpath will result in spring boot…

What is spring boot? – Introduction

Spring Boot is an opinionated view of the spring ecosystem and third-party libraries. It helps you to create stand-alone, production-grade Spring-based Applications that you can just run. Spring Boot lets you create Java applications that can run by using java -jar or traditional war deployments. It also provides a command-line tool that runs “spring scripts” with minimum…

Spring Boot Annotations | Beginners guide

Let’s take a look at a list of important spring boot annotations and when to use them with an example. What are annotations? Annotations are a form of hints that a developer can give about their program to the compiler and runtime. Based on these hints, the compilers and runtimes can process these programs differently….

Bridge Design Pattern

The Bridge design pattern is a structural pattern that deals with decoupling abstraction and its implementation. It lets you split a set of related classes into two separate abstraction and implementation hierarchies. As these are now separated, you can develop them independently of each other. Let’s understand this design pattern with an example in Java….

Spring Boot Latest Version

As of May 21st of 2021, The latest stable spring boot version is 2.5.0. Spring Boot 2.5.0 offers a variety of new fixes and dependency updates. Let’s check them out in detail. Java and Spring Boot version Compatibility Spring Boot 2.5.0 requires at least Java 8. It is also tested with java 16. Important dependency…