li-keguo commented on code in PR #3442:
URL: https://github.com/apache/incubator-shenyu/pull/3442#discussion_r884146480
##########
shenyu-client/shenyu-client-http/shenyu-client-springcloud/src/main/java/org/apache/shenyu/client/springcloud/init/SpringCloudClientBeanPostProcessor.java:
##########
@@ -151,7 +149,8 @@ private String buildApiPath(@NonNull final Method method,
@NonNull final String
private String getPathByMethod(@NonNull final Method method) {
for (Class<? extends Annotation> mapping : mappingAnnotation) {
- final String pathByAnnotation =
getPathByAnnotation(AnnotationUtils.findAnnotation(method, mapping),
pathAttributeNames);
Review Comment:
Maybe the mappingAnnotation can be removed,
```
AnnotatedElementUtils.findMergedAnnotation(method, RequestMapping.class);
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]