优化ApiArgumentResolver

This commit is contained in:
tanghc
2019-04-29 20:02:52 +08:00
parent ff20b1069a
commit a6e04b6ca4

View File

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