From ba7f9a4e4d63a2deceac84737ecd606475d8e66e Mon Sep 17 00:00:00 2001 From: tanghc Date: Tue, 27 Aug 2019 17:03:57 +0800 Subject: [PATCH] 2.0 --- .../param/ApiArgumentResolver.java | 31 +++++++++---------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/sop-common/sop-service-common/src/main/java/com/gitee/sop/servercommon/param/ApiArgumentResolver.java b/sop-common/sop-service-common/src/main/java/com/gitee/sop/servercommon/param/ApiArgumentResolver.java index a79eb61d..8cec4452 100644 --- a/sop-common/sop-service-common/src/main/java/com/gitee/sop/servercommon/param/ApiArgumentResolver.java +++ b/sop-common/sop-service-common/src/main/java/com/gitee/sop/servercommon/param/ApiArgumentResolver.java @@ -105,22 +105,21 @@ public class ApiArgumentResolver implements SopHandlerMethodArgumentResolver { } // 排除的 boolean exclude = ( - paramType.isInterface() || - WebRequest.class.isAssignableFrom(paramType) || - ServletRequest.class.isAssignableFrom(paramType) || - MultipartRequest.class.isAssignableFrom(paramType) || - HttpSession.class.isAssignableFrom(paramType) || - (pushBuilder != null && pushBuilder.isAssignableFrom(paramType)) || - Principal.class.isAssignableFrom(paramType) || - InputStream.class.isAssignableFrom(paramType) || - Reader.class.isAssignableFrom(paramType) || - HttpMethod.class == paramType || - Locale.class == paramType || - TimeZone.class == paramType || - ZoneId.class == paramType || - ServletResponse.class.isAssignableFrom(paramType) || - OutputStream.class.isAssignableFrom(paramType) || - Writer.class.isAssignableFrom(paramType) + WebRequest.class.isAssignableFrom(paramType) || + ServletRequest.class.isAssignableFrom(paramType) || + MultipartRequest.class.isAssignableFrom(paramType) || + HttpSession.class.isAssignableFrom(paramType) || + (pushBuilder != null && pushBuilder.isAssignableFrom(paramType)) || + Principal.class.isAssignableFrom(paramType) || + InputStream.class.isAssignableFrom(paramType) || + Reader.class.isAssignableFrom(paramType) || + HttpMethod.class == paramType || + Locale.class == paramType || + TimeZone.class == paramType || + ZoneId.class == paramType || + ServletResponse.class.isAssignableFrom(paramType) || + OutputStream.class.isAssignableFrom(paramType) || + Writer.class.isAssignableFrom(paramType) ); // 除此之外都匹配 return !exclude;