Commit 20ed8c2e authored by Robert Smith's avatar Robert Smith Committed by Stephane Nicoll

Document precedence between properties and yaml

See gh-25300
parent 06b26408
......@@ -522,6 +522,8 @@ Config data files are considered in the following order:
. <<boot-features-external-config-files,Application properties>> outside of your packaged jar (`application.properties` and YAML variants).
. <<boot-features-external-config-files-profile-specific,Profile-specific application properties>> outside of your packaged jar (`application-\{profile}.properties` and YAML variants).
NOTE: If you have both `application.yml` and `application.properties` on the same level, the `application.properties` will take precedence.
To provide a concrete example, suppose you develop a `@Component` that uses a `name` property, as shown in the following example:
[source,java,indent=0]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment