I\'m currently using the @Value Spring 3.1.x annotation like this:
@Value(\"${stuff.value:}\") private String value;
This puts an empty Str
In case you need to inject an empty (0 length) "" string as @Value default - use SPEL (spring expression language) as follows:
@Value("${index.suffix:#{''}}") private String indexSuffix;
#{''} just gets you an empty string as injected @Value's default.
by yl