chapter one

1 Booting Spring Boot

 

This chapter covers

  • Introduction to Spring Boot, features, and components
  • Project structure and various elements of a generated project
  • Creating an executable jar file and the generated jar structure
  • Spring Boot startup events, and ways to listen to events in Spring Boot
  • Overview of Spring Boot starter, auto-configuration, failure analyzer, and actuator
  • Introduction to Spring Boot developer tools to increase developer productivity

Welcome to Spring Boot! The most popular Java framework out there. It has revolutionized the way Spring applications or, more specifically, Java applications are developed these days. Spring Boot is an open-source extension of the Spring Framework designed to simplify the Spring application development. The popularity of Spring Boot is mostly attributed to its ability to create standalone, production-ready Spring-based applications in no time that you can just run without worrying much about the configuration hazards.

This chapter provides an overview of Spring Boot discussing what is Spring Boot, its purpose, project structure, and several key Spring Boot features. Are you ready? Let's boot our journey!”

1.1 Introducing Spring Boot

In this section, we’ll introduce you to the Spring Boot framework and briefly answer a few common questions around Spring Boot.

1.1.1 Why Spring Boot?

1.1.2 What is Spring Boot

1.1.3 Spring Boot Core Features

1.1.4 Spring Boot Components

1.2 Code Examples

1.2.1 Maven vs Gradle

1.2.2 Java vs Kotlin

1.2.3 Database Support

1.2.4 Lombok

1.3 Getting Started with Spring Boot

1.3.1 Your First Spring Boot Project

1.3.2 Spring Boot Project Structure

1.3.3 Creating an Executable JAR file

1.3.4 Exploring the Jar file

1.3.5 Shutting Down a Spring Boot application

1.4 Spring Boot Additional Concepts

1.4.1 Spring Boot Startup Events

1.4.2 Listening Events in a Spring Boot Application

1.4.3 Custom Spring Boot Starters

1.4.4 Custom Auto-Configuration

1.4.5 Failure Analyzers

1.4.6 Spring Boot Actuator

1.4.7 Spring Boot Developer Tool

1.5 Chapter Summary