-
Notifications
You must be signed in to change notification settings - Fork 38k
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 for MultiValueMap elements in web data binding #26297
Comments
MultiValueMap
in POJO causes ClassCastException during binding
|
This turns out to be rather involved and simply not covered by our general Map support in the core |
Finally coming into 6.1 through a revised |
Affects: spring-web 5.2.11
Given a controller like the following:
I would expect a GET request to
/path?param1=a&otherParams[otherParam]=b
to cause an instance ofMyCriteria
withparam1 = "a"
andotherParams = {"otherParam": ["b"]}
to be passed in.Instead, the following exception is thrown:
This works as expected when
MultiValueMap<String, String>
is replaced withMap<String, List<String>>
The text was updated successfully, but these errors were encountered: