Spring + mybatis returns the result through @ ResponseBody and solves the Chinese garbled code
•
Java
Problem occurrence:
Return via @ ResponseBody
result:
terms of settlement:
In spring MVC Configuration in XML
But after configuration, there are new problems
Later, I learned that the XSD file version of spring MVC was wrong. Just replace it with the XSD of spring MVC 4.0
Then it's OK
The above spring + mybatis returns the results through @ ResponseBody. The solution to Chinese garbled code is all the content shared by Xiaobian. I hope it can give you a reference and support more programming tips.
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码