Shutdown a Spring Boot Application 1. Overview Managing the lifecycle of Spring Boot Application is very important for a production-ready system. The Spring container handles the creation, initialization, and destruction of all the Beans with the help of the ApplicationContext. The emphasize of this write-up is the destruction phase of… Continue Reading spring-boot-shutdown

Quick Guide on Loading Initial Data with Spring Boot 1. Overview Spring Boot makes it really easy to manage our database changes in an easy way. If we leave the default configuration, it’ll search for entities in our packages and create the respective tables automatically. But sometimes we’ll need some… Continue Reading spring-boot-data-sql-and-schema-sql

Logging HTTP Requests with Spring Boot Actuator HTTP Tracing 1. Introduction When we work with microservices or web services in general, it’s quite useful to know how our users interact with our services. This can be achieved by tracing all the requests that hit our services and collect this information… Continue Reading spring-boot-actuator-http

Spring Boot: Customize Whitelabel Error Page 1. Overview In this article, we’re going to look at how to disable and customize the default error page for a Spring Boot application as proper error handling depicts professionalism and quality work. 2. Disabling the Whitelabel Error Page First, let’s see how we… Continue Reading spring-boot-custom-error-page

RSocket Using Spring Boot 1. Overview RSocket is an application protocol providing Reactive Streams semantics – it functions, for example, as an alternative to HTTP. In this tutorial, we’re going to look at RSocket using Spring Boot, and specifically how it helps abstract away the lower-level RSocket API. 2. Dependencies… Continue Reading spring-boot-rsocket