I have following configuration file:
@Configuration
public class PropertyPlaceholderConfigurerConfig {
@Value(\"${property:defaultValue}\")
private
If you run your application using VM option and then want to access that option in your application you have to do it slightly different:
@Value("#{systemProperties.property}")
private String property;
Your PropertyPlaceholderConfigurer is not aware of system properties, also note that you are accessing properties using $ - which refers to place holders and # refers to beans, where systemProperties is a bean.