Merge branch '2.4.x'

Closes gh-25500
This commit is contained in:
Madhura Bhave 2021-03-04 13:04:18 -08:00
commit e1904fb72f
1 changed files with 12 additions and 0 deletions

View File

@ -805,6 +805,18 @@ NOTE: Directories loaded using a wildcard are sorted alphabetically.
If you need a different order, then you should list each location as a separate import
Configuration trees can also be used for Docker secrets.
When a Docker swarm service is granted access to a secret, the secret gets mounted into the container.
For example, if a secret named `db.password` is mounted at location `/run/secrets/`, you can make `db.password` available to the Spring environment using the following:
[source,yaml,indent=0,configprops,configblocks]
----
spring:
config:
import: "optional:configtree:/run/secrets/"
----
[[boot-features-external-config-placeholders-in-properties]]
==== Property Placeholders