feat():增加鉴权
parent
f84dccb05b
commit
5ac8b3380d
|
@ -60,7 +60,8 @@ public class SpringDocConfig {
|
|||
if (s.equals("/login") || s.equals("/code") || s.equals("/register") ) {
|
||||
return;
|
||||
}
|
||||
// 接口添加鉴权参数
|
||||
|
||||
// 接口添加鉴权参数canshu
|
||||
pathItem.readOperations()
|
||||
.forEach(operation ->
|
||||
operation.addSecurityItem(new SecurityRequirement().addList(HttpHeaders.AUTHORIZATION))
|
||||
|
|
Loading…
Reference in New Issue