4 Spring Boot: Autoconfiguration and Actuator

 

This chapter covers

  • Introducing Spring Boot autoconfiguration, various types of conditional annotation, and in-depth discussion
  • An overview of Spring Boot DevTools, how to configure it, and its various purposes
  • Introducing Spring Boot FailureAnalyzer and how to define a custom application-specific FailureAnalyzer
  • An in-depth discussion on Spring Boot Actuator and how to define custom metrics

You’ve already learned so much about Spring Boot in the last three chapters. You now have a solid foundation in Spring Boot, having already seen various features of the framework and several common tasks that you need to perform on daily basis. You’ve also learned how to communicate and use a database in a Spring Boot application.

In this chapter, you’ll explore two major concepts of Spring Boot: the Spring Boot autoconfiguration and Spring Boot actuator. You’ll learn various building blocks of Spring Boot autoconfiguration and explore how it works in an application. We’ll explore the various conditional annotation, which is the foundation of Spring Boot autoconfiguration. You’ll then explore the Spring Boot actuator, which lets you monitor your application health and let you interact with it.

4.1 Understanding Spring Boot autoconfiguration

 
 

4.1.1 Understanding @Conditional annotation

 
 
 
 

4.1.2 Deep dive into autoconfiguration

 
 
 

4.2 Using Spring Boot DevTools

 
 

4.2.1 Property defaults

 
 
 
 

4.2.2 Automatic restart

 
 

4.2.3 Live reload

 

4.3 Creating a custom failure analyzer

 
 

4.3.1 Technique: Creating a custom Spring Boot FailureAnalyzer

 

4.4 Spring Boot Actuator

 

4.4.1 Technique: Configuring Spring Boot Actuator in a Spring Boot application

 
 

4.4.2 Understanding Spring Boot Actuator endpoints

 
 
 

4.4.3 Managing Spring Boot Actuator endpoints

 
 
 

4.4.4 Health endpoint deep dive

 
 

4.4.5 Creating a custom Spring Boot HealthIndicator

 
 
 
 
sitemap

Unable to load book!

The book could not be loaded.

(try again in a couple of minutes)

manning.com homepage
test yourself with a liveTest