I\'m currently using the @Value Spring 3.1.x annotation like this:
@Value(\"${stuff.value:}\")
private String value;
This puts an empty Str
You must set the nullValue of the PropertyPlaceholderConfigurer. For the example I'm using the string @null but you can also use the empty string as nullValue.
Now you can use the string @null to represent the null value
@Value("${stuff.value:@null}")
private String value;
Please note: The context name space doesn't support the null value at the moment. You can't use
Tested with Spring 3.1.1