解决ZuulFilter乱码 2018-12-17 程序设计 Spring Cloud, Zuul 字数统计: 30(字) 阅读时长: 1(分)设置响应头1234val context = RequestContext.getCurrentContext()context.setSendZuulResponse(false)context.addZuulResponseHeader("Content-Type", "application/json;charset=UTF-8")context.responseBody = JSON.toJSONString(response)