We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
idea测试出中文乱码问题。 java.lang.AssertionError: Response content Expected: "[{"id":1,"name":"测试大师","age":20}]" but: was "[{"id":1,"name":"???è???¤§???","age":20}]" 搜了半天,file encoding都改成utf-8了,但是还是乱码。
The text was updated successfully, but these errors were encountered:
@RequestMapping(value = "/users", produces = "application/json;charset=utf8")
类上的注解,改为这样就可以了。
通过实现 WebMvcConfigurer 中的configureMessageConverters 这种方式,经我实测无效。
Sorry, something went wrong.
No branches or pull requests
idea测试出中文乱码问题。
java.lang.AssertionError: Response content
Expected: "[{"id":1,"name":"测试大师","age":20}]"
but: was "[{"id":1,"name":"???è???¤§???","age":20}]"
搜了半天,file encoding都改成utf-8了,但是还是乱码。
The text was updated successfully, but these errors were encountered: