ing
This commit is contained in:
parent
d9e0810ba9
commit
a7769de52c
|
@ -16,6 +16,7 @@ import org.springframework.beans.factory.InitializingBean;
|
|||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.context.ApplicationContextAware;
|
||||
import org.springframework.core.annotation.AnnotationUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
|
@ -74,7 +75,7 @@ public class Service implements InitializingBean, ApplicationContextAware {
|
|||
}
|
||||
|
||||
private String getRPCMethodName(Method method) {
|
||||
ProbeAPI a = method.getAnnotation(ProbeAPI.class);
|
||||
ProbeAPI a = AnnotationUtils.findAnnotation(method, ProbeAPI.class);
|
||||
if (null == a) {
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user