support spring annotation @RequestAttribute

This commit is contained in:
durian530 2021-11-16 08:30:43 +08:00
parent bb3739b4de
commit 47c8a51400
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;
}