Merge pull request #157 from durian530/master

support spring annotation @RequestAttribute
This commit is contained in:
shalousun 2021-11-16 10:17:47 +08:00 committed by GitHub
commit 38026fc3c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

@ -52,4 +52,6 @@ public interface SpringMvcAnnotations {
String PATH_VARIABLE = "PathVariable";
String SESSION_ATTRIBUTE = "SessionAttribute";
String REQUEST_ATTRIBUTE="RequestAttribute";
}

View File

@ -487,6 +487,10 @@ public class SpringBootDocBuildTemplate implements IDocBuildTemplate<ApiDoc> {
if (SpringMvcAnnotations.SESSION_ATTRIBUTE.equals(annotationName)) {
continue out;
}
if(SpringMvcAnnotations.REQUEST_ATTRIBUTE.equals(annotationName))
{
continue out;
}
if (SpringMvcAnnotations.REQUEST_HERDER.equals(annotationName)) {
continue out;
}
@ -782,6 +786,10 @@ public class SpringBootDocBuildTemplate implements IDocBuildTemplate<ApiDoc> {
if (SpringMvcAnnotations.SESSION_ATTRIBUTE.equals(annotationName)) {
continue out;
}
if(SpringMvcAnnotations.REQUEST_ATTRIBUTE.equals(annotationName))
{
continue out;
}
if (SpringMvcAnnotations.REQUEST_HERDER.equals(annotationName)) {
continue out;
}