You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2019/12/20 07:58:06 UTC
[GitHub] [skywalking] liudantop opened a new issue #4092: spring mvc plugin
can not enhance when RequestMapping annotation inherit from interface
liudantop opened a new issue #4092: spring mvc plugin can not enhance when RequestMapping annotation inherit from interface
URL: https://github.com/apache/skywalking/issues/4092
Please answer these questions before submitting your issue.
- Why do you submit this issue?
- [ ] Question or discussion
- [ ] Bug
- [ ] Requirement
- [ ] Feature or performance improvement
___
### Question
- What do you want to know?
example code:
public interface TestController {
@RequestMapping(value ="/test", method = RequestMethod.GET)
String test();
}
@RestController
public class TestControllerImp implements TestController{
public String test(){
return "test";
}
}
in spriing mvc plugin can not enhance
new DeclaredInstanceMethodsInterceptPoint() {
@Override
public ElementMatcher<MethodDescription> getMethodsMatcher() {
return isAnnotatedWith(named("org.springframework.web.bind.annotation.RequestMapping"));
}
@Override
public String getMethodsInterceptor() {
return Constants.REQUEST_MAPPING_METHOD_INTERCEPTOR;
}
@Override
public boolean isOverrideArgs() {
return false;
}
}
___
### Bug
- Which version of SkyWalking, OS and JRE?
- Which company or project?
- What happen?
If possible, provide a way for reproducing the error. e.g. demo application, component version.
___
### Requirement or improvement
- Please describe about your requirements or improvement suggestions.
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services