优化ApiArgumentResolver

1.x
tanghc 6 years ago
parent ff20b1069a
commit a6e04b6ca4
  1. 3
      sop-common/sop-service-common/src/main/java/com/gitee/sop/servercommon/param/ApiArgumentResolver.java

@ -23,9 +23,6 @@ public class ApiArgumentResolver implements HandlerMethodArgumentResolver {
@Override @Override
public boolean supportsParameter(MethodParameter methodParameter) { public boolean supportsParameter(MethodParameter methodParameter) {
if (methodParameter == null) {
return false;
}
boolean hasAnnotation = methodParameter.getMethodAnnotation(ApiMapping.class) != null boolean hasAnnotation = methodParameter.getMethodAnnotation(ApiMapping.class) != null
|| methodParameter.getMethodAnnotation(ApiAbility.class) != null; || methodParameter.getMethodAnnotation(ApiAbility.class) != null;
// 有注解 // 有注解

Loading…
Cancel
Save