Adding Spring Boot Actuator in our pom.xml

Spring Boot Actuator is pretty simple to configure in our pom.xml. We extended the parent pom of Spring Boot, so it is not necessary to specify the version of the dependency.

Let's configure our new dependency:

<dependencies>
  <dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-actuator</artifactId>
  </dependency>
</dependencies>

Awesome, really easy. Let's understand a little bit more before we test.

Get Spring 5.0 By Example 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.