Skip to content

Clarify use of "x-www-form-urlencoded" in reference documentation [SPR-8415] #13063

Closed
@spring-projects-issues

Description

@spring-projects-issues

Rossen Stoyanchev opened SPR-8415 and commented

For "x-www-form-urlencoded" data one could use an @RequestBody (via FormHttpMessageConverter) or a @ModelAttribute method argument (via data binding). The latter has a few advantages:

  • it results in a typed object rather than MultiValueMap
  • with MultiValueMap you lose the ability to apply automatic validation
  • use of request.getParameter*() before the @RequestBody argument is resolved causes problems

Affects: 3.1 M1

Issue Links:

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: taskA general task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions