© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2024
M. DeinumSpring Boot 3 Recipeshttps://doi.org/10.1007/979-8-8688-0113-6_2

2. The Basics of Spring Boot

Marten Deinum1  
(1)
Meppel, Drenthe, The Netherlands
 

In this chapter, we will take a look at the foundational features of Spring Boot.

An information icon with the letter i inside a circle.Use the Spring Initializr to create a project; no additional dependencies are required.

2-1. Configure a Bean

Problem

You want Spring Boot to use your class as a bean.

Solution

Depending on your needs, either you can leverage @ComponentScan to automatically detect your class and ...

Get Spring Boot 3 Recipes: A Problem-Solution Approach for Java Microservices and Cloud-Native Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.