From 3787b23a98d94b4698a71640bedb9702b9091c2c Mon Sep 17 00:00:00 2001 From: Sebastien Deleuze Date: Wed, 6 Feb 2019 16:00:24 +0100 Subject: [PATCH] Deprecate PropertyPlaceholderConfigurer This commit deprecates PropertyPlaceholderConfigurer in favor of PropertySourcesPlaceholderConfigurer. Closes gh-22181 --- .../factory/config/PropertyPlaceholderConfigurer.java | 11 +++++------ .../PropertyPlaceholderBeanDefinitionParser.java | 4 ++-- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/spring-beans/src/main/java/org/springframework/beans/factory/config/PropertyPlaceholderConfigurer.java b/spring-beans/src/main/java/org/springframework/beans/factory/config/PropertyPlaceholderConfigurer.java index 2d53637d8c..56c637d804 100644 --- a/spring-beans/src/main/java/org/springframework/beans/factory/config/PropertyPlaceholderConfigurer.java +++ b/spring-beans/src/main/java/org/springframework/beans/factory/config/PropertyPlaceholderConfigurer.java @@ -32,11 +32,6 @@ import org.springframework.util.StringValueResolver; * {@link #setLocation local} {@link #setProperties properties} and/or system properties * and environment variables. * - *

As of Spring 3.1, {@link org.springframework.context.support.PropertySourcesPlaceholderConfigurer - * PropertySourcesPlaceholderConfigurer} should be used preferentially over this implementation; it is - * more flexible through taking advantage of the {@link org.springframework.core.env.Environment} and - * {@link org.springframework.core.env.PropertySource} mechanisms also made available in Spring 3.1. - * *

{@link PropertyPlaceholderConfigurer} is still appropriate for use when: *