Commit b6f13c546b4b0e17c1e0a982ff1eef145f3268c4
1 parent
e60a69b6
过滤BindingResult对象,防止异常
Showing
1 changed file
with
3 additions
and
1 deletions
ruoyi-framework/src/main/java/com/ruoyi/framework/aspectj/LogAspect.java
... | ... | @@ -16,6 +16,7 @@ import org.aspectj.lang.reflect.MethodSignature; |
16 | 16 | import org.slf4j.Logger; |
17 | 17 | import org.slf4j.LoggerFactory; |
18 | 18 | import org.springframework.stereotype.Component; |
19 | +import org.springframework.validation.BindingResult; | |
19 | 20 | import org.springframework.web.multipart.MultipartFile; |
20 | 21 | import org.springframework.web.servlet.HandlerMapping; |
21 | 22 | import com.alibaba.fastjson.JSON; |
... | ... | @@ -237,6 +238,7 @@ public class LogAspect |
237 | 238 | return entry.getValue() instanceof MultipartFile; |
238 | 239 | } |
239 | 240 | } |
240 | - return o instanceof MultipartFile || o instanceof HttpServletRequest || o instanceof HttpServletResponse; | |
241 | + return o instanceof MultipartFile || o instanceof HttpServletRequest || o instanceof HttpServletResponse | |
242 | + || o instanceof BindingResult; | |
241 | 243 | } |
242 | 244 | } |
... | ... |