Bird
0
0

Why might the info endpoint not show updated custom info after changing application.properties without restarting the Spring Boot application?

hard📝 Conceptual Q10 of 15
Spring Boot - Actuator
Why might the info endpoint not show updated custom info after changing application.properties without restarting the Spring Boot application?
ABecause Spring Boot does not reload properties dynamically for actuator info endpoint
BBecause info endpoint caches data for 5 minutes by default
CBecause management endpoints require a separate refresh endpoint call
DBecause info endpoint only reads build-info.properties
Step-by-Step Solution
Solution:
  1. Step 1: Understand property reload behavior

    Spring Boot does not reload application.properties dynamically by default.
  2. Step 2: Check caching and refresh mechanisms

    Info endpoint does not cache by default; refresh endpoints exist but do not reload properties automatically.
  3. Final Answer:

    Spring Boot does not reload properties dynamically for info endpoint -> Option A
  4. Quick Check:

    Property changes need app restart to reflect in info endpoint [OK]
Quick Trick: Restart app to see property changes in info endpoint [OK]
Common Mistakes:
  • Assuming info endpoint caches data
  • Expecting refresh endpoint to reload properties
  • Thinking info endpoint reads only build-info.properties

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Spring Boot Quizzes