Support for java.util.Optional as a @RequestPart [SPR-12644] #17245
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
Anderson Vaz opened SPR-12644 and commented
In issue #16448 was introduced support for java.util.Optional for
@ResquestParam
Controllers method parameters however it was not spread to@RequestPart
parameters.Attached is a project Spring Boot demonstrating the issue. When the parameter is
@RequestPart
and Optional, Spring can't convert the value.I think that would be nice to have this feature implemented for
@RequestPart
parameters too.Thanks!
Affects: 4.1.3, 4.1.4
Reference URL: https://github.com/avaz/spring-bug-optional-requestpart.git
Issue Links:
@RequestParam
@RequestBody
The text was updated successfully, but these errors were encountered: