diff --git a/org.springframework.beans/src/main/java/org/springframework/beans/factory/config/PropertyPlaceholderConfigurer.java b/org.springframework.beans/src/main/java/org/springframework/beans/factory/config/PropertyPlaceholderConfigurer.java index 2964567b1c..7359d4e216 100644 --- a/org.springframework.beans/src/main/java/org/springframework/beans/factory/config/PropertyPlaceholderConfigurer.java +++ b/org.springframework.beans/src/main/java/org/springframework/beans/factory/config/PropertyPlaceholderConfigurer.java @@ -140,6 +140,7 @@ public class PropertyPlaceholderConfigurer extends PropertyResourceConfigurer private BeanFactory beanFactory; + /** * Set the prefix that a placeholder string starts with. * The default is "${". @@ -158,6 +159,16 @@ public class PropertyPlaceholderConfigurer extends PropertyResourceConfigurer this.placeholderSuffix = placeholderSuffix; } + /** + * Specify the separating character between the placeholder variable + * and the associated default value, or null if no such + * special character should be processed as a value separator. + * The default is ":". + */ + public void setValueSeparator(String valueSeparator) { + this.valueSeparator = valueSeparator; + } + /** * Set the system property mode by the name of the corresponding constant, * e.g. "SYSTEM_PROPERTIES_MODE_OVERRIDE". @@ -255,6 +266,7 @@ public class PropertyPlaceholderConfigurer extends PropertyResourceConfigurer this.beanFactory = beanFactory; } + @Override protected void processProperties(ConfigurableListableBeanFactory beanFactoryToProcess, Properties props) throws BeansException {