1 Booting Spring Boot


This chapter covers

  • Introducing Spring Boot
  • Project structure and various elements of a generated project
  • Creating an executable JAR file and the generated JAR structure
  • An overview of Spring Boot starter, autoconfiguration, failure analyzer, and actuator
  • Introducing 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 run without worrying much about the configuration hazards.

This chapter provides an overview of Spring Boot, discussing what Spring Boot is, its purpose, its 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 about Spring Boot. We’ll discuss why we need Spring Boot framework, introduce you to the framework, the various features it offers and various components of the framework.

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