PropertySourcesPlaceholderConfigurer ignores ignoreUnresolvablePlaceholders flag #27947
Closed
1 task done
Labels
Milestone
Overview
If a
PropertySourcesPlaceholderConfigurer
bean has itsignoreUnresolvablePlaceholders
flag set totrue
, that flag is not always honored when asking theEnvironment
to resolve a property containing placeholders.As a consequence, given a property declared as
my.app.var = ${var}
without a correspondingvar
property declared, an attempt to resolve@Value("${my.app.var}")
will result in the following exception.Related Issues
Deliverables
ignoreUnresolvablePlaceholders
flag inPropertySourcesPlaceholderConfigurer
is set totrue
.The text was updated successfully, but these errors were encountered: