Spring Boot项目中,对接口请求参数打印日志

public class CustomFilter implements Filter { @Override public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { HttpServletRequest httpServletRequest = (HttpServletRequest) request; // 打印请求参数 log.info("Request Params: " + httpServletRequest.getParameterMap()); chain.doFilter(request, response); } }
上一篇:负载均衡的艺术:Eureka驱动的分布式服务网格负载均衡策略


下一篇:jmeter安装及环境变量配置、Jmeter目录介绍和界面详解