diff --git a/spring-web/src/main/java/org/springframework/web/bind/annotation/BindParam.java b/spring-web/src/main/java/org/springframework/web/bind/annotation/BindParam.java index 31fde117d4..569ce72b6a 100644 --- a/spring-web/src/main/java/org/springframework/web/bind/annotation/BindParam.java +++ b/spring-web/src/main/java/org/springframework/web/bind/annotation/BindParam.java @@ -31,7 +31,7 @@ import java.lang.annotation.Target; * @since 6.1 * @see org.springframework.web.bind.WebDataBinder#construct */ -@Target(ElementType.PARAMETER) +@Target({ElementType.PARAMETER, ElementType.FIELD}) @Retention(RetentionPolicy.RUNTIME) @Documented public @interface BindParam {