mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
优化ApiArgumentResolver
This commit is contained in:
@@ -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;
|
||||||
// 有注解
|
// 有注解
|
||||||
|
Reference in New Issue
Block a user