Skip to content

Commit

Permalink
Merge pull request #9 from wangpeng2020/hotfix
Browse files Browse the repository at this point in the history
添加对Rest类解析,兼容有些采用Rest作为Controller类结尾的项目
  • Loading branch information
liuhuagui committed Nov 19, 2019
2 parents 3a7b951 + be86436 commit 5fc4e9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ protected boolean process(RootDoc root) {
private void handleClassDocs(RootDoc root) {
ClassDoc[] classes = root.classes();
for (ClassDoc classDoc : classes) {
if (!classDoc.name().endsWith(Constants.CONTROLLER))//只解析*Controller类
if (!classDoc.name().endsWith(Constants.CONTROLLER) && !classDoc.name().endsWith(Constants.REST))//解析*Controller类和Rest类
continue;
handleClassDoc(classDoc);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ public class Constants {

public static final String CONTROLLER = "Controller";

public static final String REST = "Rest";
}

0 comments on commit 5fc4e9d

Please sign in to comment.