From b40263e06b33ffad418f2273f4f811721656a96e 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 (cherry picked from commit 127b91f) --- .../PropertySourcesPlaceholderConfigurer.java | 10 +-- ...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, 132 insertions(+), 57 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 c831bbb855..3182390402 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 @@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 the original author or authors. + * Copyright 2002-2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -108,8 +108,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: *