Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support declarative mode for data binding #30948

Closed
rstoyanchev opened this issue Jul 26, 2023 · 0 comments
Closed

Support declarative mode for data binding #30948

rstoyanchev opened this issue Jul 26, 2023 · 0 comments
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Milestone

Comments

@rstoyanchev
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant