With #22788, MediaType#APPLICATION_JSON_UTF8 is deprecated an WebFlux default content type for JSON is Content-Type: application/json but based on my tests with Spring MVC it is still Content-Type: application/json;charset=UTF-8. I suspect it is caused by
|
((ServletServerHttpResponse)outputMessage).getServletResponse().setCharacterEncoding("UTF-8"); |
.
With #22788,
MediaType#APPLICATION_JSON_UTF8is deprecated an WebFlux default content type for JSON isContent-Type: application/jsonbut based on my tests with Spring MVC it is stillContent-Type: application/json;charset=UTF-8. I suspect it is caused byspring-framework/spring-web/src/main/java/org/springframework/http/converter/json/AbstractJackson2HttpMessageConverter.java
Line 255 in 73dbd06