fear(): 增加鉴权
parent
a4f3a55247
commit
1d71f64de7
|
@ -60,7 +60,9 @@ public class SpringDocConfig {
|
||||||
// 接口添加鉴权参数
|
// 接口添加鉴权参数
|
||||||
pathItem.readOperations()
|
pathItem.readOperations()
|
||||||
.forEach(operation ->
|
.forEach(operation ->
|
||||||
operation.addSecurityItem(new SecurityRequirement().addList(HttpHeaders.AUTHORIZATION))
|
operation.addSecurityItem(
|
||||||
|
new SecurityRequirement().addList(HttpHeaders.AUTHORIZATION)
|
||||||
|
)
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue