diff --git a/src/org/redkale/net/http/Rest.java b/src/org/redkale/net/http/Rest.java index 1a5258f2f..3220369c4 100644 --- a/src/org/redkale/net/http/Rest.java +++ b/src/org/redkale/net/http/Rest.java @@ -146,6 +146,7 @@ public final class Rest { final Map restAttributes = new LinkedHashMap<>(); for (final Method method : serviceType.getMethods()) { + if(Modifier.isStatic(method.getModifiers())) continue; Class[] extypes = method.getExceptionTypes(); if (extypes.length > 1) continue; if (extypes.length == 1 && extypes[0] != IOException.class) continue;