private Map<String, Object> getParam(HttpServletRequest request){ Map<String, String[]> map = request.getParameterMap(); Map<String, Object> requestMap = new HashMap(); for(Map.Entry<String, String[]> entry:map.entrySet()){ String s = entry.getValue()[0]; String s1 = null; try { s1 = new String(s.getBytes("ISO-8859-1"), "UTF-8"); } catch (UnsupportedEncodingException e) { LOGGER.warn("key为{}的参数转码失败,详情:{}",entry.getKey(),e); } entry.getValue()[0] = s1; requestMap.put(entry.getKey(), entry.getValue()); } return requestMap; }