Merge branch '2.4.x'

Closes gh-25464
This commit is contained in:
Stephane Nicoll 2021-03-01 10:45:16 +01:00
commit 9db78022bd
1 changed files with 3 additions and 0 deletions

View File

@ -463,6 +463,9 @@ 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: It is recommended to stick with one format for your entire application.
If you have configuration files with both `.properties` and `.yml` format in the same location, `.properties` takes 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]