You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when i directly annotation on Class without any interfaces, like below, when request 'rawMethodName' method with {"method": "differentMethodName"} it work properly:
@Service
@JsonRpcService("sample")
@AutoJsonRpcServiceImpl
public class SampleApi{
@JsonRpcMethod("differentMethodName")
public Object rawMethodName(Object args) {
//some code
}
}
but when i put some none business interfaces implements on Class,like below, when request 'rawMethodName' method with {"method": "differentMethodName"} it GET "method not found":
@Service
@JsonRpcService("sample")
@AutoJsonRpcServiceImpl
public class SampleApi implements NoneBusinessInterface{
@JsonRpcMethod("differentMethodName")
public Object rawMethodName(Object args) {
//some code
}
}
Due to the Spring bean Enhancement, method.isAnnotationPresent(JsonRpcMethod.class) doesn't work properly:
com.googlecode.jsonrpc4j.ReflectionUtil{
static Set<Method> findCandidateMethods(Class<?>[] classes, String name) {
for (Class<?> clazz : classes) {
for (Method method : clazz.getMethods()) {
if (method.isAnnotationPresent(JsonRpcMethod.class)) {
..............
}
}
}
}
}
The text was updated successfully, but these errors were encountered:
when i directly annotation on Class without any interfaces, like below, when request 'rawMethodName' method with {"method": "differentMethodName"} it work properly:
but when i put some none business interfaces implements on Class,like below, when request 'rawMethodName' method with {"method": "differentMethodName"} it GET "method not found":
Due to the Spring bean Enhancement, method.isAnnotationPresent(JsonRpcMethod.class) doesn't work properly:
The text was updated successfully, but these errors were encountered: