spring-@ResponseBody返回时的编码处理

Posted luohaonan

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了spring-@ResponseBody返回时的编码处理相关的知识,希望对你有一定的参考价值。

下面是一个解决方案

 

@RequestMapping(value = "/queryall", method = GET, produces = "application/json; charset=utf-8")
    public @ResponseBody String queryAll() {
        return  QManager.queryJobs();
        
    }

 

以上是关于spring-@ResponseBody返回时的编码处理的主要内容,如果未能解决你的问题,请参考以下文章