修改HttpServletRequest里的paraMap种的参数便利方法

Map<String, String[]> parameterMap = request.getParameterMap();
Method method = parameterMap.getClass().getMethod("setLocked",
new Class[]{boolean.class});
method.invoke(parameterMap, new Object[]{new Boolean(false)});
parameterMap.put("j_username", new String[] {"admin"});
parameterMap.put("j_password", new String[] {"admin"});

你可能感兴趣的:(修改HttpServletRequest里的paraMap种的参数便利方法)