diff --git a/src/org/redkale/boot/ApiDocsService.java b/src/org/redkale/boot/ApiDocsService.java index ce213ce0b..6af262f1d 100644 --- a/src/org/redkale/boot/ApiDocsService.java +++ b/src/org/redkale/boot/ApiDocsService.java @@ -89,6 +89,8 @@ public final class ApiDocsService { for (final Class rtype : action.results()) { results.add(rtype.getName()); if (typesmap.containsKey(rtype.getName())) continue; + if(rtype.getName().startsWith("java.")) continue; + if(rtype.getName().startsWith("javax.")) continue; final boolean filter = FilterBean.class.isAssignableFrom(rtype); final Map> typemap = new LinkedHashMap<>(); Class loop = rtype; @@ -136,6 +138,8 @@ public final class ApiDocsService { paramsList.add(parammap); if (ptype.isPrimitive() || ptype == String.class) continue; if (typesmap.containsKey(ptype.getName())) continue; + if(ptype.getName().startsWith("java.")) continue; + if(ptype.getName().startsWith("javax.")) continue; final Map> typemap = new LinkedHashMap<>(); Class loop = ptype; diff --git a/src/org/redkale/boot/apidoc-template.html b/src/org/redkale/boot/apidoc-template.html index 5c7f99680..b6df0b565 100644 --- a/src/org/redkale/boot/apidoc-template.html +++ b/src/org/redkale/boot/apidoc-template.html @@ -41,7 +41,7 @@ html.push(' '); html.push('' + action.url + ''); html.push('' + action.comment + ''); - html.push('模块ID: ' + servlet.moduleid + '
操作ID: ' + action.actionid + '
需鉴权: ' + (action.auth ? 'true' : 'false') + ''); + html.push('模块ID: ' + servlet.moduleid + '
操作ID: ' + action.actionid + '
需鉴权: ' + (action.auth ? 'true' : 'false') + ''); var paramshtml = []; paramshtml.push(''); for (var p = 0; p < action.params.length; p++) {