feat(ruoyi-common-doc): 集成 nextdoc4j 以支持文档管理

- 在开发环境配置文件中新增 nextdoc4j 启用开关,默认启用
- 在 ruoyi-common-doc 模块中添加 nextdoc4j springboot starter 依赖
- 在根 pom 文件中增加 nextdoc4j 版本管理以及相应的依赖导入
- 添加 nextdoc4j 相关的 bom 依赖导入,统一管理版本依赖
This commit is contained in:
吴泽威 2025-11-27 17:23:52 +08:00
parent b58085fde1
commit fd67175788
3 changed files with 15 additions and 5 deletions

10
pom.xml
View File

@ -20,6 +20,7 @@
<java.version>17</java.version> <java.version>17</java.version>
<mybatis.version>3.5.16</mybatis.version> <mybatis.version>3.5.16</mybatis.version>
<springdoc.version>2.8.13</springdoc.version> <springdoc.version>2.8.13</springdoc.version>
<nextdoc4j.version>1.1.1</nextdoc4j.version>
<therapi-javadoc.version>0.15.0</therapi-javadoc.version> <therapi-javadoc.version>0.15.0</therapi-javadoc.version>
<fastexcel.version>1.3.0</fastexcel.version> <fastexcel.version>1.3.0</fastexcel.version>
<velocity.version>2.3</velocity.version> <velocity.version>2.3</velocity.version>
@ -127,10 +128,13 @@
<scope>import</scope> <scope>import</scope>
</dependency> </dependency>
<!--nextdoc4j - bom 管理-->
<dependency> <dependency>
<groupId>org.springdoc</groupId> <groupId>top.nextdoc4j</groupId>
<artifactId>springdoc-openapi-starter-webmvc-api</artifactId> <artifactId>nextdoc4j-dependencies</artifactId>
<version>${springdoc.version}</version> <version>${nextdoc4j.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency> </dependency>
<dependency> <dependency>

View File

@ -186,6 +186,11 @@ sms:
sdk-app-id: 您的sdkAppId sdk-app-id: 您的sdkAppId
# nextdoc4j 配置 - dev 启动 prod不配置默认不启动
nextdoc4j:
# 是否启用
enabled: true
--- # 三方授权 --- # 三方授权
justauth: justauth:
# 前端外网访问地址 # 前端外网访问地址

View File

@ -21,9 +21,10 @@
<artifactId>ruoyi-common-core</artifactId> <artifactId>ruoyi-common-core</artifactId>
</dependency> </dependency>
<!-- Nextdoc4j 集成 -->
<dependency> <dependency>
<groupId>org.springdoc</groupId> <groupId>top.nextdoc4j</groupId>
<artifactId>springdoc-openapi-starter-webmvc-api</artifactId> <artifactId>nextdoc4j-springboot3-starter</artifactId>
</dependency> </dependency>
<dependency> <dependency>