Do not ignore null/empty values from SPRING_APPLICATION_JSON

Fixes gh-21542
This commit is contained in:
Madhura Bhave
2020-08-06 17:49:00 -07:00
parent ccffd50285
commit cdbb7f441a
3 changed files with 51 additions and 2 deletions

View File

@@ -426,6 +426,11 @@ You can also supply the JSON as a JNDI variable, as follows: `java:comp/env/spri
====
NOTE: Although `null` values from the JSON will be added to the resulting property source, the `PropertySourcesPropertyResolver` treats `null` properties as missing values.
This means that the JSON cannot override properties from lower order property sources with a `null` value.
[[boot-features-external-config-random-values]]
=== Configuring Random Values