Skip to content

Commit 79ec294

Browse files
committed
add systemPropertiesModeName example
1 parent ed3e1f4 commit 79ec294

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package org.baeldung.properties.spring;
2+
3+
import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer;
4+
import org.springframework.context.annotation.Bean;
5+
import org.springframework.context.annotation.Configuration;
6+
7+
@Configuration
8+
public class PropertiesWithPlaceHolderConfigurer {
9+
10+
public PropertiesWithPlaceHolderConfigurer() {
11+
super();
12+
}
13+
14+
15+
@Bean
16+
public PropertyPlaceholderConfigurer propertyConfigurer() {
17+
final PropertyPlaceholderConfigurer props = new PropertyPlaceholderConfigurer();
18+
props.setSystemPropertiesMode(PropertyPlaceholderConfigurer.SYSTEM_PROPERTIES_MODE_FALLBACK);
19+
return props;
20+
}
21+
22+
}

0 commit comments

Comments
 (0)