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);
}
}
}
相关文章
- 08-01java拦截器与过滤器打印请求url与参数
- 08-01Java Servlet 过滤器与 springmvc 拦截器的区别?
- 08-01Java过滤器(Filter)与SpringMVC拦截器(Interceptor)之间的关系与区别
- 08-01java 过滤器(Filter)与springMVC 拦截器(interceptor)的实现案例
- 08-01Loadrunner加密算法脚本与token作为get请求url上的参数处理
- 08-01【JAVA学习】拦截器与过滤器的区别
- 08-01CSS样式表、JS脚本加载顺序与SpringMVC在URL路径中传参数与SpringMVC 拦截器
- 08-01java中过滤器(Filter)与拦截器(Interceptor )区别
- 08-01java中过滤器(Filter)与拦截器(Interceptor )区别
- 08-01JAVA中过滤器(Filter)与拦截器(Interceptor)