-
Notifications
You must be signed in to change notification settings - Fork 38.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Remove AllEncompassingFormHttpMessageConverter from WebMvcConfigurationSupport #32917
Comments
Here is a project that attempts to demonstrate the problem of writing a There are four tests: one local using MockMvc and three using a server with TestRestTemplate, RestTemplate and RestClient. The
The test with the
Switching to Spring Framework |
It's not uncommon to access form data through an |
Understood. I guess we have no other way out that to revert #32826, as supporting maps will break too many applications. Fortunately there is still #32832, which we can keep. |
WebMvcConfigurationSupport
currently includes theAllEncompassingFormHttpMessageConverter
, seespring-framework/spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/WebMvcConfigurationSupport.java
Line 895 in 6a8f0d6
Including a form converter on the server side makes no sense, as the servlet environment already provides form support. Effectively, including this converter can result in controllers returning form data, which makes no sense. So, the
AllEncompassingFormHttpMessageConverter
should be removed fromWebMvcConfigurationSupport
.The text was updated successfully, but these errors were encountered: