I have following configuration file:
@Configuration
public class PropertyPlaceholderConfigurerConfig {
@Value(\"${property:defaultValue}\")
private
For any other poor souls who couldn't get this to work in some Configuration classes when they work in others:
Look to see what other beans you have in that class and if any of them get instantiated early in the ApplicationContext. A ConversionService is an example of one. This would instantiate the Configuration class before what is required is registered, thereby making no property injection take place.
I fixed this by moving the ConversionService to another Configuration class that I Imported.