Spring boot 拦截所有请求的出参入参 并打印日志
public class MyRequestWrapper extends HttpServletRequestWrapper { private byte[] requestBody=null; @SneakyThrows public MyRequestWrapper(HttpServletRequest request) { super(request); String body = HttpUtils.getBody(request);
原创
2021-06-02 18:16:27 ·
4166 阅读 ·
1 评论