@Override
public Integer getResourcePosition(RequestMappingInfo requestMappingInfo, HandlerMethod handlerMethod) {
Class<?> controllerClass = handlerMethod.getBeanType();
Api apiAnnotation = AnnotationUtils.findAnnotation(controllerClass, Api.class);
if (null != apiAnnotation && !isBlank(apiAnnotation.value())) {
return apiAnnotation.position();
}
return 0;
}
@Override