whfjam commented on issue #5291:
URL: https://github.com/apache/skywalking/issues/5291#issuecomment-672054191
>
>
> #5085 is my attempt at fixing this. The only thing not working is the e2e
tests.
here is my codes if any helps to you
@Override
public String getAcceptedMethodTypes(Method method) {
return ParsePathUtil.recursiveParseMethodAnnotaion(method, m -> {
if (AnnotationUtils.getAnnotation(m, GetMapping.class) != null) {
return RequestMethod.GET.toString();
}
if (AnnotationUtils.getAnnotation(m, PostMapping.class) != null)
{
return RequestMethod.POST.toString();
}
if (AnnotationUtils.getAnnotation(m, PutMapping.class) != null) {
return RequestMethod.PUT.toString();
}
if (AnnotationUtils.getAnnotation(m, DeleteMapping.class) !=
null) {
return RequestMethod.DELETE.toString();
}
if (AnnotationUtils.getAnnotation(m, PatchMapping.class) !=
null) {
return RequestMethod.PATCH.toString();
}
return null;
});
}
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]