@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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user