@Value("${someProperty}") should work without having to specify a PropertySourcesPlaceholderConfigurer bean. [SPR-11773] #16395
Labels
status: bulk-closed
An outdated, unresolved issue that's closed in bulk as part of a cleaning process
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: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 PropertySourcesPlaceholderConfigurer2 votes, 4 watchers
The text was updated successfully, but these errors were encountered: