#header赋值 httpHeaders.add("key", URLEncoder.encode("中文字段", "UTF-8")); #header取值 URLDecoder.decode(request.getHeader("key"),"UTF-8")