Skip to content

Commit ad80b94

Browse files
committed
Allow BindParam on a field
See gh-30947
1 parent 8513ec7 commit ad80b94

File tree

1 file changed

+1
-1
lines changed
  • spring-web/src/main/java/org/springframework/web/bind/annotation

1 file changed

+1
-1
lines changed

Diff for: spring-web/src/main/java/org/springframework/web/bind/annotation/BindParam.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* @since 6.1
3232
* @see org.springframework.web.bind.WebDataBinder#construct
3333
*/
34-
@Target(ElementType.PARAMETER)
34+
@Target({ElementType.PARAMETER, ElementType.FIELD})
3535
@Retention(RetentionPolicy.RUNTIME)
3636
@Documented
3737
public @interface BindParam {

0 commit comments

Comments
 (0)