From 127b91fd4f148538562fc255ed1e22b5b74817dd Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Wed, 31 Jul 2013 17:50:44 +0200 Subject: [PATCH] PropertySourcesPlaceholderConfigurer's "ignoreUnresolvablePlaceholders" setting reliably applies to nested placeholders as well Issue: SPR-10549 --- .../PropertySourcesPlaceholderConfigurer.java | 8 +-- ...rtyResourceConfigurerIntegrationTests.java | 19 ++++++ ...ertySourcesPlaceholderConfigurerTests.java | 41 ++++++++++-- .../core/env/AbstractPropertyResolver.java | 66 +++++++++++-------- .../core/env/PropertyResolver.java | 10 +-- .../env/PropertySourcesPropertyResolver.java | 21 ++++-- .../util/PropertyPlaceholderHelper.java | 14 ++-- .../PropertySourcesPropertyResolverTests.java | 8 +-- 8 files changed, 131 insertions(+), 56 deletions(-) diff --git a/spring-context/src/main/java/org/springframework/context/support/PropertySourcesPlaceholderConfigurer.java b/spring-context/src/main/java/org/springframework/context/support/PropertySourcesPlaceholderConfigurer.java index c2c6cc8cce..ba0d7d1916 100644 --- a/spring-context/src/main/java/org/springframework/context/support/PropertySourcesPlaceholderConfigurer.java +++ b/spring-context/src/main/java/org/springframework/context/support/PropertySourcesPlaceholderConfigurer.java @@ -112,8 +112,8 @@ public class PropertySourcesPlaceholderConfigurer extends PlaceholderConfigurerS *

Processing occurs by replacing ${...} placeholders in bean definitions by resolving each * against this configurer's set of {@link PropertySources}, which includes: *