In the video below, we take a closer look at Spring Boot: Building RESTful Web Services With Jersey (XML) + JPA | Spring Boot Jersey Example. Let's get started!
Spring Boot — Building Restful Web Services With Jersey (JSON) + JPA | Spring Boot Jersey Example
In the video below, we take a closer look at how to build RESTful web services with Jersey (JSON) + JPA. Let's get started!
Spring Boot: Admin Server and Admin Client Example
In the video below, we take a closer look at Spring boot Admin Server and Admin Client example. Let's get started!
Spring Boot: Selecting Profile Configuration, YAML Property File [Video]
In the video below, we take a closer look at the Spring boot — Selecting profile configuration — YAML property file | Spring Boot tutorial. Let's get started!
How to Configure Logback in The Spring Boot Application? [Video]
In the video below, we take a closer look at the How to configure Logback in the Spring boot application to print the log in the console and file?. Let's get started!
Spring Boot With Spring Data JPA | Spring Boot CRUD Example [Video]
In the video below, we take a closer look at the Spring Boot With Spring Data JPA | Spring Boot CRUD Example with RESTful APIs and JPA. Let's get started!
Spring Boot: Disabling Whitelabel Error Page [Video]
In the video below, we take a closer look at the Spring Boot: Disabling Whitelabel Error Page. Let's get started!
How to Configure log4j2 In a Spring Boot Application? | Spring Boot Logging [Video]
In the video below, we take a closer look at the How to configure log4j2 in the Spring boot application using log4j2.xml? | Spring Boot logging. Let's get started!
How to Configure the Interceptor With Spring Boot Application
In the video below, we take a closer look at how to configure the interceptor with the Spring Boot application! Let's take a look!
How to Debug the Spring Boot Application in Eclipse? [Video]
In the video below, we take a closer look at the How to Debug the Spring Boot Application in Eclipse? | Spring Boot Tutorial. Let's get started!
Spring Boot: How to Reload Changes Without Restarting the Server [Video]
In the video below, we take a closer look at the Spring Boot, specifically, how we can reload changes without restarting the server. Let's get started!
How to Bootstrap a Spring Boot Application? Maven Project
In the video below, we take a closer look at how to bootstrap a Spring Boot application. Let's get started!
Enable Spring Boot ApplicationStartup Metrics to Diagnose Slow Startup
Overview
During an application startup process, Spring Boot performs a lot of work in the background. This work involves creating Spring Application Context, creating various beans, auto-wiring, and auto-configuration of various components, and finally, starting the application. When a Spring Boot Application has a slow startup, it can be one or more beans and related dependencies taking longer to initialise and slowing down the entire process.
Profiling Spring Boot application doesn’t often help in diagnosing the startup issues. This is because there are a number of beans getting initialised and it is really difficult to figure out which ones are causing the latency. Spring Boot Application Startup Metrics are useful for such cases.
How to Delete the Record From the Database Using JdbcTemplate With Spring Boot
In the video below, we take a closer look at how to delete the record from the database using JdbcTemplate with Spring Boot. Let's get started!
Spring Auto-Wiring Beans With @Autowired annotation [AutowiredAnnotationBeanPostProcessor]
In the video below, we take a closer look at FiSpring Auto-Wiring Beans with @Autowired annotation[AutowiredAnnotationBeanPostProcessor]. Let's get started!
How to Get All Records From the Database Using JdbcTemplate With Spring Boot
In the video below, we take a closer look at how to get all records from the database using JdbcTemplate with Spring Boot. Let's get started!
Selecting Your Spring Boot Profile Configuration for a YAML Property File [Video]
In the video below, we take a closer look at selecting your Spring Boot profile configuration for a YAML property file. Let's get started!
Further Reading
A Simple State Machine for Spring Boot Projects
There are many articles and open-source projects on state machines (Ref#1) that can be searched on Google or GitHub. The Spring team itself provides a state machine framework (Ref#2). However, I found these frameworks not easy to customize. Furthermore, it was not easy to add logs and throw custom exceptions where I needed. So I created a simple implementation of the state machine that can be easily integrated into Spring Boot applications.
The idea of a state machine is to define a set of state transitions where each transition is affected by an event. For instance, Wikipedia has an example for a turnstile that has the Locked and Unlocked states, which are affected by the events "coin" and "push". The turnstile's state transitions from Locked to Unlocked when the "coin" event happens. It transitions from Unlocked to Locked when a "push" event happens. The state machine enforces that when the turnstile is in the Locked state the "push" event has no effect. Similarly, when the turnstile is in the Unlocked state the "coin" event has no effect.