This commit is contained in:
crusader 2018-04-25 20:56:24 +09:00
parent d9e0810ba9
commit a7769de52c

View File

@ -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;
}