-
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
shardingsphere-jdbc-5.5.0 causes spring boot to return JSON data as XML #31203
Comments
|
Can |
|
I ran into the same problem and found others who ran into the same problem as follows: |
|
I have said earlier that this bug is due to jackson-dataformat-xml, but shardingsphere-5.5.0 uses the functionality of this component to cause such problems in programs that introduce shardingsphere-jdbc, which is relevant. That's why I said can you switch back to jaxb parsing xml instead of jackson-dataformat-xml, otherwise jackson-dataformat-xml has always had this problem without changing, Our projects using shardingsphere-jdbc-5.5.0 need to deal specifically with the issue of the response data being returned in xml。 The problem of replicating jackson-dataformat-xml is relatively easy。
Write a piece of logic that returns JSON content, as shown in the following code Accessing this interface address directly in a browser yields the following results |
|
|
From my point of view, this is actually a problem with Google Chrome, because your http request gives too high a priority to XML. I suggest you file an issue against Spring Boot on the Chromium side. Refer to https://www.chromium.org/for-testers/bug-reporting-guidelines/ . |
|
spring-boot: 2.7.18、3.2.4
shardingsphere-jdbc:5.5.0
The introduction of the 'jackson-dataformat-xml' component dependency in version 5.5 resulted in the JSON returned by the spring boot program being changed to XML format.
shardingsphere-jdbc-core-5.4.1 Return format is
shardingsphere-jdbc-5.5.0 Return format is
The text was updated successfully, but these errors were encountered: