@RequestParam and co support placeholders and expressions in their defaultValue attributes (SPR-5922); @Value expressions supported as MVC handler method arguments as well (against request scope)

This commit is contained in:
Juergen Hoeller
2009-09-14 10:48:15 +00:00
parent 7835e66abb
commit bb70c9a4c4
5 changed files with 127 additions and 24 deletions

View File

@@ -25,8 +25,11 @@ import java.lang.annotation.Target;
* Annotation at the field or method/constructor parameter level
* that indicates a default value expression for the affected argument.
*
* <p>This is typically used for assigning default field values
* with "#{systemProperties.myProp}" style expressions.
* <p>Typically used for expression-driven dependency injection. Also supported
* for dynamic resolution of handler method parameters, e.g. in Spring MVC.
*
* <p>A common use case is to assign default field values using
* "#{systemProperties.myProp}" style expressions.
*
* @author Juergen Hoeller
* @since 3.0