摘要: 问题背景 项目是 SpringBoot 单体式,在项目中,为了实现调用 controller 请求的日志记录功能。因此做了以下配置: 创建自定义拦截器 LogInterceptor; 因为需要使用到流获取请求参数,解决流只能读一次问题,所以需要自定义 HttpServletRequestWrappe 阅读全文
posted @ 2024-01-29 09:11 小小程序猿-DB 阅读(1055) 评论(0) 推荐(4) 编辑