spring cloud version Hoxton.SR5 is giving XML format as HTTP response by default

When I am using

<spring-cloud.version>Hoxton.SR5</spring-cloud.version>

in my spring boot application it is returning me an XML format HTTP response by default.

<List><item><productId>1</productId><productName>Samsung LED TV</productName<quantity>100</quantity<itemType>TV</itemType><itemGroup>Entertainement</itemGroup></item></List>

And When I am using

<spring-cloud.version>Hoxton.SR3</spring-cloud.version>

it is returning JSON Format.

[{"productId":1,"productName":"Samsung LED TV","quantity":100,"itemType":"TV","itemGroup":"Entertainement"}]

What are the changes made in Hoxton.SR5 that it is returning XML format by default and how can I make sure that I get JSON format while using Hoxton.SR5.

Asked on July 17, 2020 in XML.
Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.