dragon-zhang commented on code in PR #3889:
URL: https://github.com/apache/shenyu/pull/3889#discussion_r958459456
##########
shenyu-client/shenyu-client-motan/src/main/java/org/apache/shenyu/client/motan/MotanServiceEventListener.java:
##########
@@ -94,7 +93,7 @@ public MotanServiceEventListener(final PropertiesConfig
clientConfig, final Shen
@Override
public void onApplicationEvent(final ContextRefreshedEvent
contextRefreshedEvent) throws BeansException {
applicationContext = contextRefreshedEvent.getApplicationContext();
- Map<String, Object> beans =
applicationContext.getBeansWithAnnotation(ShenyuMotanClient.class);
+ Map<String, Object> beans =
applicationContext.getBeansWithAnnotation(ShenyuMotanService.class);
Review Comment:
why change this ?
`applicationContext.getBeansWithAnnotation(ShenyuMotanClient.class);` can get
more beans, if changed, some bean with `@ShenyuMotanClient` will not got.
--
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]