无法获取requestMapping注解
iiscarves opened this issue · comments
provider service 为代理类是无法获取RequestMapping注解
public void createProvider(Object serviceImpl) {
Method[] methodList = serviceImpl.getClass().getMethods();
for (Method method : methodList) {
// serviceImpl是JDK动态代理或cglib代理是注解为空
RequestMapping mapping = method.getAnnotation(RequestMapping.class);
.....
}