Closed
Description
Until Spring Framework v5.3.10, when Accept
header is not specified, all API used Content-Type: application/json
as default value. This behavior seems to have changed in v5.3.11 where Content-Type: application/xml
is being used.
Please refer attached demo.zip.
When following command is used to trigger HTTP request, different responses are returned by API with v5.3.10
and v5.3.11
.
curl --request GET --url http://localhost:8080/json
Spring Framework <= v5.3.10
{
"name": "Neo"
}
Spring Framework v5.3.11
<Json>
<name>Neo</name>
</Json>