update 优化 删除无用注释 导致代码报null问题
This commit is contained in:
parent
2bc7171abd
commit
8281b838b9
@ -54,6 +54,7 @@ public class SpringDocConfig {
|
||||
openApi.externalDocs(properties.getExternalDocs());
|
||||
openApi.tags(properties.getTags());
|
||||
openApi.paths(properties.getPaths());
|
||||
if (properties.getComponents() != null) {
|
||||
openApi.components(properties.getComponents());
|
||||
Set<String> keySet = properties.getComponents().getSecuritySchemes().keySet();
|
||||
List<SecurityRequirement> list = new ArrayList<>();
|
||||
@ -61,7 +62,7 @@ public class SpringDocConfig {
|
||||
keySet.forEach(securityRequirement::addList);
|
||||
list.add(securityRequirement);
|
||||
openApi.security(list);
|
||||
|
||||
}
|
||||
return openApi;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user