Spring Boot, Actuator.
org.springframework.stereotype.Component; import java.util.HashMap; import java.util.Map; @Component public class PersonInfoContributor implements InfoContributor { @Autowired private PersonService personService; @Override public void contribute(Info.Builder builder) { Map<String, Integer>