From one huge reactive web application, the previous recipe built three service boxes which are all Spring Boot 2.0 applications. As the number of microservices increases, the management and monitoring of each application becomes inconvenient and time-consuming. Spring Boot 2.0 supports a starter POM that provides audits, metrics, status, management operations, and other analytics that can assist in monitoring each microservice. This dependency is inherited from the repository as the spring-boot-starter-actuator
.
This recipe will need the three Maven projects, ch10-deptservice
, ch10-empservice
, and ch10-loginservice
to contain the Spring Boot Actuator in their respective pom.xml
to view application details and enable shutdown operations to avoid the java.net.BindException: Address already in use: bind
problem.