HttpServletRequest httpServletRequest = (HttpServletRequest) request;HttpServletResponse httpServletResponse = (HttpServletResponse) response;//请求参数打印LOGGER.info("uri: " + httpServletRequest.getRequestURI());Map map = request.getParameterMap();if (map != null && !map.isEmpty()) {Set<String> keySet = map.keySet();for (String key : keySet) {String[] values = (String[]) map.get(key);for (String value : values) {LOGGER.info("> " + key + "=" + value);} }}
复制代码