springboot + shiro 返回页面乱码

也可以在controller方法@RequestMapping上添加:

produces="text/plain;charset=UTF-8"

这种方法的弊端是限定了数据类型。

posted @ 2021-02-27 17:22  开心的甲鱼  阅读(171)  评论(0)    收藏  举报