dragon-zhang commented on code in PR #3503:
URL: https://github.com/apache/incubator-shenyu/pull/3503#discussion_r893613225


##########
shenyu-client/shenyu-client-tars/src/main/java/org/apache/shenyu/client/tars/TarsServiceBeanPostProcessor.java:
##########
@@ -91,7 +97,17 @@ private void handler(final Object serviceBean) {
             clazz = AopUtils.getTargetClass(serviceBean);
         }
         Method[] methods = ReflectionUtils.getUniqueDeclaredMethods(clazz);
-        String serviceName = 
clazz.getAnnotation(ShenyuTarsService.class).serviceName();
+        ShenyuTarsService shenyuTarsService = 
clazz.getAnnotation(ShenyuTarsService.class);
+        String serviceName = shenyuTarsService.serviceName();
+        if (serviceName.contains("*")) {
+            for (Method method : methods) {

Review Comment:
   better change to
   ```java
               if (Objects.nonNull(beanShenyuTarsClient)) {
                   for (Method method : methods) {
                       publisher.publishEvent(buildMetaDataDTO(serviceName, 
shenyuTarsClient, method, buildRpcExtJson(method)));
                   }
               }
   ```



-- 
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]

Reply via email to