The previous sections explored most of the Spring Boot features required to develop a microservice. In this section, some of the production-ready operational aspects of Spring Boot will be explored.
Spring Boot actuators provide an excellent out-of-the-box mechanism to monitor and manage Spring Boot applications in production:
Note
The full source code of this example is available as the chapter2.bootactuator
project in the code files of this book.
Create another Spring Starter Project and name it
chapter2.bootactuator
. This time, select Web and Actuators under Ops. Similar to thechapter2.bootrest
project, add aGreeterController
endpoint with thegreet
method.Start the application as Spring Boot app.
Point the browser to
localhost:8080/actuator
. This will open the HAL browser. Then, review the Links section.A number of links are available under the Links section. These are automatically exposed by the Spring Boot actuator:
Some of the important links are listed as follows...