From a2be3b597a6a4d4bbe8c141bc36da3294bb26ca5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=B3=BD=E5=A8=81?= <958142070@qq.com> Date: Thu, 26 Mar 2026 14:30:05 +0800 Subject: [PATCH] =?UTF-8?q?feat(api-doc):=20=E5=8D=87=E7=BA=A7=E5=B9=B6?= =?UTF-8?q?=E9=80=82=E9=85=8D=20nextdoc4j-1.2.0=20=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在default-api-doc.yml中开启security和enum插件的启用配置 - 更新continew-starter-api-doc模块中相关插件依赖为springboot3版本 - 将continew-starter-dependencies中nextdoc4j版本升级至1.2.0 - 切换nextdoc4j-bom依赖为支持springboot3的版本以兼容升级 --- continew-starter-api-doc/pom.xml | 9 ++++++++- .../src/main/resources/default-api-doc.yml | 8 ++++++++ continew-starter-dependencies/pom.xml | 4 ++-- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/continew-starter-api-doc/pom.xml b/continew-starter-api-doc/pom.xml index 56fae460..326b24e8 100644 --- a/continew-starter-api-doc/pom.xml +++ b/continew-starter-api-doc/pom.xml @@ -27,10 +27,17 @@ top.nextdoc4j nextdoc4j-springboot3-starter + top.nextdoc4j - nextdoc4j-plugin-enums + nextdoc4j-plugin-enum-springboot3 + + + + + top.nextdoc4j + nextdoc4j-plugin-security-schemes-springboot3 \ No newline at end of file diff --git a/continew-starter-api-doc/src/main/resources/default-api-doc.yml b/continew-starter-api-doc/src/main/resources/default-api-doc.yml index 320c8574..b11d803e 100644 --- a/continew-starter-api-doc/src/main/resources/default-api-doc.yml +++ b/continew-starter-api-doc/src/main/resources/default-api-doc.yml @@ -12,3 +12,11 @@ springdoc: ## 接口文档增强配置 nextdoc4j: enabled: true + # 启用插件 + plugin: + # 认证展示插件 + security: + enabled: true + # 枚举展示插件 + enum: + enabled: true diff --git a/continew-starter-dependencies/pom.xml b/continew-starter-dependencies/pom.xml index 02724979..b761df7c 100644 --- a/continew-starter-dependencies/pom.xml +++ b/continew-starter-dependencies/pom.xml @@ -62,7 +62,7 @@ 2.9.0 - 1.1.5 + 1.2.0 2.2.38 @@ -320,7 +320,7 @@ top.nextdoc4j - nextdoc4j-bom + nextdoc4j-bom-springboot3 ${nextdoc4j.version} pom import -- Gitee