Josh Long opened SPR-8539 and commented
Can we please register a PropertySourcesPlaceholderConfigurer when @PropertySource is used so that everything just "works" in @Configuration classes? I realize that I could also do a @Bean public static PropertySourcesPlaceholderConfigurer pspc(){ }, but it is surprising that it doesn't work by default. It's one more place for users to stub their toes when I can't think of any reason not to support it. Thanks for your consideration.
Reference URL: http://blog.springsource.com/2011/06/10/spring-3-1-m2-configuration-enhancements/#comment-195857
Issue Links:
Referenced from: commits 690d33e
1 votes, 9 watchers
Josh Long opened SPR-8539 and commented
Can we please register a PropertySourcesPlaceholderConfigurer when
@PropertySourceis used so that everything just "works" in@Configurationclasses? I realize that I could also do a@Beanpublic static PropertySourcesPlaceholderConfigurer pspc(){ }, but it is surprising that it doesn't work by default. It's one more place for users to stub their toes when I can't think of any reason not to support it. Thanks for your consideration.Reference URL: http://blog.springsource.com/2011/06/10/spring-3-1-m2-configuration-enhancements/#comment-195857
Issue Links:
@Enable-styleannotation is desired for automatic registration of PropertySourcesPlaceholderConfigurer@Componentclass using@Valuecannot access@PropertySourceproeprtiesReferenced from: commits 690d33e
1 votes, 9 watchers