update 优化 springdoc 配置鉴权头写死问题 增加持久化鉴权头配置

This commit is contained in:
疯狂的狮子li
2022-12-22 18:26:03 +08:00
parent dd9ef8431b
commit 15f7d4dc47
2 changed files with 12 additions and 1 deletions

View File

@ -129,6 +129,10 @@ security:
- /favicon.ico
- /*/api-docs
- /*/api-docs/**
- /swagger-ui/**
- /webjars/**
- /swagger-ui.html
- /doc.html
# actuator 监控配置
- /actuator
- /actuator/**
@ -202,6 +206,9 @@ swagger:
name: ${sa-token.token-name}
springdoc:
swagger-ui:
# 持久化认证数据
persistAuthorization: true
#这里定义了两个分组,可定义多个,也可以不定义
group-configs:
- group: 1.演示模块