4.4.0版本不支持多个请求头吗,调试里不显示只显示一个
wangjiancheng180 opened this issue · comments
@bean
public GlobalOpenApiCustomizer orderGlobalOpenApiCustomizer() {
return openApi -> {
// 全局添加鉴权参数
if (openApi.getPaths() != null) {
openApi.getPaths().forEach((s, pathItem) -> {
// 为所有接口添加鉴权
pathItem.readOperations().forEach(operation -> {
operation.addSecurityItem(new SecurityRequirement().addList(HttpHeaders.AUTHORIZATION));
operation.addSecurityItem(new SecurityRequirement().addList(BusinessCommonUtil.HEADER_PLATFORM_KEY));
});
});
}
};
}``