Skip to content
Preptima
mediumScenarioConceptMidSenior

A property has one value in application.yml, another in production, and nobody can say where the production value comes from. How do you find out?

Ask the running application, not the files. Actuator's env endpoint queried for that property lists the property sources in precedence order with the value each holds, the first holder winning. Then trace it: an environment variable matched by relaxed binding, a profile file, a command-line argument or a JVM system property.

4 min readUpdated 2026-10-09Target archetype: Enterprise Captive

Answer

Short answer

Ask the running application, not the repository. Spring Boot configuration is the union of a dozen property sources, and the Actuator env endpoint queried for one name lists the sources in precedence order and shows which of them define it, so the first one holding a value is the winner. That entry names the winning property source: an OS environment variable, a profile-specific file, a command-line argument or a system property. From there you follow it to whoever set it.

Was this answer helpful?

Likely follow-ups

  • When two profiles are active and both files set the property, which value wins and why?
  • How would you find the source if Actuator is not on the classpath at all?
  • What would you change so that the next engineer can answer this question from the repository alone?
  • Why can an environment variable override a scalar property easily but struggle with an element inside a list?

Related questions

Further reading

Related Topics