Closed
Description
Adam Berlin opened SPR-11773 and commented
This came up while discussing the injection of YAML configuration using @Value
in Spring Boot. (spring-projects/spring-boot#821) The configuration file is loaded by spring-boot, but it is not accessible to @Value
until:
@Bean
public PropertySourcesPlaceholderConfigurer configurer() {
return new PropertySourcesPlaceholderConfigurer();
}
This seems like unnecessary busy-work when setting up my application. Who knows what a PropertySourcesPlaceholderConfigurer is? That should be something the framework sets up for me automatically.
Issue Links:
- @Enable-style annotation is desired for automatic registration of PropertySourcesPlaceholderConfigurer [SPR-9904] #14537
@Enable-style
annotation is desired for automatic registration of PropertySourcesPlaceholderConfigurer
2 votes, 4 watchers