Spring Boot actuators
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 ...
Get Spring Microservices 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.