From eb69f8e614cf4f5740fe63b5536b7cd1bc0be28c Mon Sep 17 00:00:00 2001 From: RuoYi Date: Sun, 18 Apr 2021 22:32:19 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=87=E6=BB=A4BindingResult=E5=AF=B9?= =?UTF-8?q?=E8=B1=A1=EF=BC=8C=E9=98=B2=E6=AD=A2=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/ruoyi/common/log/aspect/LogAspect.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ruoyi-common/ruoyi-common-log/src/main/java/com/ruoyi/common/log/aspect/LogAspect.java b/ruoyi-common/ruoyi-common-log/src/main/java/com/ruoyi/common/log/aspect/LogAspect.java index e76018e77..86f1863b6 100644 --- a/ruoyi-common/ruoyi-common-log/src/main/java/com/ruoyi/common/log/aspect/LogAspect.java +++ b/ruoyi-common/ruoyi-common-log/src/main/java/com/ruoyi/common/log/aspect/LogAspect.java @@ -18,6 +18,7 @@ import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpMethod; import org.springframework.stereotype.Component; +import org.springframework.validation.BindingResult; import org.springframework.web.multipart.MultipartFile; import com.alibaba.fastjson.JSON; import com.ruoyi.common.core.utils.SecurityUtils; @@ -236,6 +237,7 @@ public class LogAspect return entry.getValue() instanceof MultipartFile; } } - return o instanceof MultipartFile || o instanceof HttpServletRequest || o instanceof HttpServletResponse; + return o instanceof MultipartFile || o instanceof HttpServletRequest || o instanceof HttpServletResponse + || o instanceof BindingResult; } }