Performance: Info endpoint configuration
This affects the server response time and the size of the data sent to clients when accessing the info endpoint.
management.endpoint.info.enabled=true
management.info.env.enabled=false
management.info.git.enabled=false
management.info.build.enabled=false
# Only expose minimal custom info properties neededmanagement.endpoint.info.enabled=true
management.info.env.enabled=true
management.info.git.enabled=true
management.info.build.enabled=true
# Adding large custom info properties with many nested fields| Pattern | Server Processing | Response Size | Network Transfer | Verdict |
|---|---|---|---|---|
| Exposing all default and large custom info properties | High CPU for serialization | Large JSON payload (~100kb+) | Longer transfer time | [X] Bad |
| Exposing minimal essential info properties only | Low CPU for serialization | Small JSON payload (~10kb) | Faster transfer | [OK] Good |
info endpoint in a Spring Boot application?application.properties file?management.endpoint.{name}.enabled to enable endpoints.management.endpoint.info.enabled.application.properties snippet:management.endpoints.web.exposure.include=info,health spring.info.app.name=MyApp spring.info.app.version=1.2.3
/actuator/info endpoint return?spring.info.* appear as nested JSON keys matching their structure. Here, spring.info.app.name and spring.info.app.version create an "app" object.management.endpoint.info.enabled=true but /actuator/info still returns 404. What is the most likely cause?management.endpoints.web.exposure.include.spring.info.build.* properties and expose it. Which configuration snippet correctly achieves this?management.endpoint.info.enabled=true to activate the info endpoint.management.endpoints.web.exposure.include to make it accessible.spring.info.build.version and spring.info.build.time to add custom metadata.Pass the test and this pattern moves unknown