RealHeart commented on issue #31067:
URL: 
https://github.com/apache/shardingsphere/issues/31067#issuecomment-2084765663

   > * Why is the Expected behavior "return json"? You need to provide unit 
tests.
   
   Under normal circumstances, my API returns JSON, after introducing 
shardingsphere, because it contains jackson-dataformat-XML, Springboot will 
support returning XML-type content, the browser's accept content-type XML is 
higher than JSON, and the, this results in a preference for XML output, with 
the expectation of JSON, and my current solution is to change the default 
MediaType and skip the accept content-type detection to return the JSON format 
by default


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to