Skip to content
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

关于@ResponseBody返回乱码问题 #9

Open
SummerWindL opened this issue Dec 13, 2018 · 0 comments
Open

关于@ResponseBody返回乱码问题 #9

SummerWindL opened this issue Dec 13, 2018 · 0 comments

Comments

@SummerWindL
Copy link

你好,我改造过你这个项目,在使用过程中出现调用DemoController
image
这个方法的时候,前端页面显示乱码。
image
我最先想到是去看配置,一开始没看出什么问题,后来跟了CharacterEncodingFilter过滤器发现,这个版本的过滤器
image
有发生变化,于是过滤器改了
image
之后发现还是乱码,于是将RequestMappingHandlerAdapter适配器的StringHttpMessageConverter的bean配置移动到spring-beans.xml里面,解决问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant