Closed
Description
Stepan Koltsov opened SPR-8257 and commented
@Configuration
public class TmpConfig {
@PostConstruct
public void init() {
System.out.println("TmpConfig.init");
}
@Bean
public PropertyPlaceholderConfigurer propertyPlaceholderConfigurer() {
return new PropertyPlaceholderConfigurer();
}
}
new AnnotationConfigApplicationContext(TmpConfig.class);
nothing is printed. However, if propertyPlaceholderConfigurer bean removed:
@Configuration
public class TmpConfig {
@PostConstruct
public void init() {
System.out.println("TmpConfig.init");
}
}
new AnnotationConfigApplicationContext(TmpConfig.class);
"TmpConfig.init" is printed as expected.
Affects: 3.1 M1
Issue Links:
- BeanFactoryPostProcessor breaks default post-processing of @Configuration classes [SPR-8269] #12917 BeanFactoryPostProcessor breaks default post-processing of
@Configuration
classes ("duplicates")