Commit 24b26038 authored by yanzg's avatar yanzg

修复等待时间

parent 558ea3b4
......@@ -35,14 +35,14 @@ public class AspectLogUrl {
public String getMethodUrl(ProceedingJoinPoint joinPoint) {
String url = StringHelper.EMPTY;
Signature signature = joinPoint.getSignature();
Class declaringType = signature.getDeclaringType();
Class<?> declaringType = signature.getDeclaringType();
String name = signature.getName();
FeignClient feignClient = (FeignClient) declaringType.getAnnotation(FeignClient.class);
FeignClient feignClient = declaringType.getAnnotation(FeignClient.class);
// 类路径
RequestMapping[] classRequests = (RequestMapping[]) declaringType.getAnnotationsByType(RequestMapping.class);
PostMapping[] classPosts = (PostMapping[]) declaringType.getAnnotationsByType(PostMapping.class);
GetMapping[] classGets = (GetMapping[]) declaringType.getAnnotationsByType(GetMapping.class);
RequestMapping[] classRequests = declaringType.getAnnotationsByType(RequestMapping.class);
PostMapping[] classPosts = declaringType.getAnnotationsByType(PostMapping.class);
GetMapping[] classGets = declaringType.getAnnotationsByType(GetMapping.class);
List<Annotation> annotation = new ArrayList<>();
ArrayHelper.addList(annotation, classRequests, classPosts, classGets);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment