fix: 去掉Swagger自动配置类中的冗余配置
This commit is contained in:
parent
d9121ca8b3
commit
911040492e
@ -52,8 +52,7 @@ public class YudaoSwaggerAutoConfiguration {
|
|||||||
// 接口信息
|
// 接口信息
|
||||||
.info(buildInfo(properties))
|
.info(buildInfo(properties))
|
||||||
// 接口安全配置
|
// 接口安全配置
|
||||||
.components(new Components().securitySchemes(securitySchemas))
|
.components(new Components().securitySchemes(securitySchemas));
|
||||||
.addSecurityItem(new SecurityRequirement().addList(HttpHeaders.AUTHORIZATION));
|
|
||||||
securitySchemas.keySet().forEach(key -> openAPI.addSecurityItem(new SecurityRequirement().addList(key)));
|
securitySchemas.keySet().forEach(key -> openAPI.addSecurityItem(new SecurityRequirement().addList(key)));
|
||||||
return openAPI;
|
return openAPI;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user