-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to enhance method with @RequestMapping annotation declared in interface? #3847
Comments
If this is the case, we don't expect you to write in this way. You have to use more reflect API to get that. |
This should be not hard, could you try to submit a pull request to fix this? |
I don't think the issue is the reason and test not pass. |
This issue is for fixing inheritance annotation meta inform. Yours may be different. You want to instrument the subclass without the annotation. |
case is similar. thanks |
I know it is similar, but at the codes level, it is different. You should be able to provide a pull request to fix this, as you have already been looking at the ByteBuddy APIs. There is only a chance to use suitable API to filter the classes. |
thanks, let me try. |
Please answer these questions before submitting your issue.
Question
How to enhance method with @RequestMapping annotation declared in it's interface?
Here is the example code
The problem is that skywalking can not enhance the
RestApiImpl.test()
method. I guess the reason is skywalking cannot find@RequestMapping
annotation in overrided method.And here is the related source code in sw's spring-plugins:
But the method
getAnnotation
can not get annotation from interface, so how can i solve this problem?The text was updated successfully, but these errors were encountered: