set default required to false

This commit is contained in:
oppofind 2020-09-18 23:18:08 +08:00
parent c9964361b0
commit 2e1e03a90b
2 changed files with 3 additions and 1 deletions

View File

@ -41,10 +41,12 @@ public class ApiReqHeader {
* Request header type
*/
private String type;
/**
* request header defaultValue
*/
private String value;
/**
* Request header description
*/

View File

@ -479,7 +479,7 @@ public class SpringBootDocBuildTemplate implements IDocBuildTemplate<ApiDoc> {
JavaClass javaClass = builder.getJavaProjectBuilder().getClassByName(fullTypeName);
List<JavaAnnotation> annotations = parameter.getAnnotations();
List<String> groupClasses = JavaClassUtil.getParamGroupJavaClass(annotations);
String strRequired = "true";
String strRequired = "false";
boolean isPathVariable = false;
for (JavaAnnotation annotation : annotations) {
String annotationName = annotation.getType().getValue();