You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.