Bird
0
0

You added info.app.name=TestApp in application.properties but /actuator/info returns empty JSON. What is the likely cause?

medium📝 Debug Q6 of 15
Spring Boot - Actuator
You added info.app.name=TestApp in application.properties but /actuator/info returns empty JSON. What is the likely cause?
AThe info endpoint is not included in management.endpoints.web.exposure.include
BThe property key should be management.info.app.name
CThe info endpoint is disabled by default and needs enabling
DThe property value must be in YAML format
Step-by-Step Solution
Solution:
  1. Step 1: Check exposure configuration

    If info endpoint is not exposed via management.endpoints.web.exposure.include, it won't be accessible.
  2. Step 2: Verify property key correctness

    info.app.name is correct; no need for management prefix.
  3. Final Answer:

    Info endpoint not included in exposure list -> Option A
  4. Quick Check:

    Missing exposure.include=info causes empty response [OK]
Quick Trick: Expose info endpoint explicitly to see custom info [OK]
Common Mistakes:
  • Assuming info endpoint enabled means exposed
  • Using wrong property prefixes
  • Expecting YAML format in properties file

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Spring Boot Quizzes