Merge pull request #7168 from amit2103/BAEL-14274-3

[BAEL-14274] - Fixed article code for https://www.baeldung.com/proper
This commit is contained in:
Loredana Crusoveanu 2019-11-02 17:40:13 +02:00 committed by GitHub
commit d8d5270fa0
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ public class ChildConfig2 {
} }
@Bean @Bean
public static PropertyPlaceholderConfigurer configurer() { public static PropertyPlaceholderConfigurer properties() {
final PropertyPlaceholderConfigurer ppc = new PropertyPlaceholderConfigurer(); final PropertyPlaceholderConfigurer ppc = new PropertyPlaceholderConfigurer();
ppc.setLocations(new ClassPathResource("child.properties")); ppc.setLocations(new ClassPathResource("child.properties"));
return ppc; return ppc;

View File

@ -16,7 +16,7 @@ public class ParentConfig2 {
} }
@Bean @Bean
public static PropertyPlaceholderConfigurer configurer() { public static PropertyPlaceholderConfigurer properties() {
final PropertyPlaceholderConfigurer ppc = new PropertyPlaceholderConfigurer(); final PropertyPlaceholderConfigurer ppc = new PropertyPlaceholderConfigurer();
ppc.setLocations(new ClassPathResource("parent.properties")); ppc.setLocations(new ClassPathResource("parent.properties"));
return ppc; return ppc;