refactor(api-doc): 将默认API文档UI从Knife4j替换为NextDoc4j

- 移除对Knife4j相关依赖和资源配置
- 新增NextDoc4j依赖及版本管理
- 重构BaseEnumParameterHandler以继承ModelResolver
- 添加ObjectMapper注入支持枚举参数解析
- 调整资源处理器配置移除旧版静态资源配置
- 删除自定义OpenApiHandler及相关构建器配置
- 更新YAML配置文件启用NextDoc4j并移除Knife4j设置
This commit is contained in:
吴泽威
2025-10-20 16:05:41 +08:00
parent 33748f7cec
commit a60d452aee
6 changed files with 39 additions and 326 deletions

View File

@@ -22,10 +22,11 @@
<artifactId>continew-starter-core</artifactId>
</dependency>
<!-- Knife4j前身是 swagger-bootstrap-ui集 Swagger2 和 OpenAPI3 为一体的增强解决方案) -->
<!--NextDoc4j (现代化 API 文档 UI 工具 全面替代 Swagger UI) -->
<dependency>
<groupId>com.github.xiaoymin</groupId>
<artifactId>knife4j-openapi3-jakarta-spring-boot-starter</artifactId>
<groupId>top.nextdoc4j</groupId>
<artifactId>nextdoc4j-springboot3-starter</artifactId>
</dependency>
</dependencies>
</project>