Spring Boot & Actuators: John Humphreys, VP in Systems Mgmt. Engineering Nomura Securities
Spring Boot & Actuators: John Humphreys, VP in Systems Mgmt. Engineering Nomura Securities
1
© 2016 Pivotal
Agenda
§ Problems with Development
§ What is Spring Boot?
§ How do we use it?
§ Live coding – Build a spring boot app
§ Live coding – Add actuators for monitoring
§ Deployment as a service
§ Live coding - Hook up to the admin console
“
Spring Boot makes it easy to create
standalone, production-grade Spring
based applications that you can just run.
Spring.io
“
We take an opinionated view of the
platform and third-party libraries so that
you can get started with minimum fuss.
Spring.io
It will properly launch a web server and pick up any configuration files you
provide. But that’s all it does as we have no endpoints!
10 Spring Boot Actuators – Spring Days – John Humphreys
Adding an Endpoint
To make our service useful, we need to add a controller and endpoint.
Spring Boot will automatically component scan our classes (locate them and
wire them together) when it finds annotations like @Controller.
11 Spring Boot Actuators – Spring Days – John Humphreys
Maven Dependencies
To make the code we just saw work, we need just 2 things from maven.
1. Derive from Spring Boot starter parent POM.
2. Include the spring-boot starter web dependency.