Skip to content

Support declarative mode for data binding #30948

Closed
@rstoyanchev

Description

@rstoyanchev

As of #26721, DataBinder supports constructor binding. For @ModelAttribute arguments, property binding is also applied in addition to constructor binding. It makes sense to provide a mode where only constructor binding is used, and property binding is skipped.

This makes data binding more explicit as it is applied only for constructor parameters declared on the object, and helps to address requests such as #18408 and #12403 to provide more ways to data binding explicit and limit exposure to unexpected request parameters.

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions