-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SpringBoot project return format is not json #31067
Comments
|
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 |
|
|
Bug Report
For English only, other languages will not accept.
Before report a bug, make sure you have:
Please pay attention on issues you submitted, because we maybe need more details.
If no response anymore and we cannot reproduce it on current information, we will close it.
Please answer these questions before submitting your issue. Thanks!
Which version of ShardingSphere did you use?
5.5.1-SNAPSHOT(d48a6c8)
Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
ShardingSphere-JDBC
Expected behavior
return json
Actual behavior
return xml
Reason analyze (If you can)
shardingsphere-jdbc > shardingsphere-standalone-mode-repository-provider > jackson-dataformat-xml
Because jackson-dataformat-xml exists
Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
Example codes for reproduce this issue (such as a github link).
The text was updated successfully, but these errors were encountered: