Start here. This is the direct spoken answer to practice first.
Overview
Spring Boot combines ordered property sources; a later higher-priority source can override an earlier value.
Spring Boot builds an Environment from ordered property sources, and a higher-priority source overrides a lower-priority value for the same key. In the common deployment path, command-line arguments can override system properties and environment variables, which can override configuration data; external config files override packaged files, and profile-specific files override non-profile files at the same location. The full order contains additional sources, so I diagnose the effective value and its origin rather than guessing from one file.