From 108f1c4ae7b855ac0bab2d3fe028270472a8be71 Mon Sep 17 00:00:00 2001 From: Charles7c Date: Tue, 12 Dec 2023 20:36:46 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96=20API=20?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/config/application.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/continew-admin-webapi/src/main/resources/config/application.yml b/continew-admin-webapi/src/main/resources/config/application.yml index 794a77eaa..f2a576ec8 100644 --- a/continew-admin-webapi/src/main/resources/config/application.yml +++ b/continew-admin-webapi/src/main/resources/config/application.yml @@ -44,6 +44,7 @@ springdoc: # 设置对象型参数的展示形式(设为 true 表示将对象型参数平展开,即对象内的属性直接作为参数展示而不是嵌套在对象内,默认为 false) # 如果不添加该全局配置,可以在需要如此处理的对象参数类上使用 @ParameterObject default-flat-param-object: true + # 分组配置 group-configs: - group: 'all' paths-to-match: '/**' @@ -72,6 +73,15 @@ springdoc: display-name: '系统监控' paths-to-match: '/monitor/**' packages-to-scan: ${project.base-package}.webapi.monitor + ## 组件配置 + components: + # 鉴权配置 + security-schemes: + Authorization: + type: HTTP + in: HEADER + name: ${sa-token.token-name} + scheme: ${sa-token.token-prefix} ## 接口文档增强配置 knife4j: enable: true