spring-boot - 使用带有 yaml 文件的 SpringDoc 托管 Swagger 文档

标签 spring-boot yaml swagger swagger-ui springdoc

我在 Swagger UI 中找到了一个非常简洁的托管 yaml 文件的链接 here ,但它使用 Springfox 而不是 Springdoc,所以我想知道是否有其他等效的方法,因为我的公司更喜欢后者。

我真的很感激任何帮助,只要一个指南就可以了。

最佳答案

您可以观看this项目。据我了解,他们可以使用静态内容。

关于spring-boot - 使用带有 yaml 文件的 SpringDoc 托管 Swagger 文档,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63420177/

相关文章:

node.js - 为什么从 Swagger UI 发送的请求中缺少 Authorization header ?

spring-boot - Swagger-UI 在根端点上不显示 SpringBoot 和路径参数

spring - 错误: Failed to execute goal on projectorg. apache.maven.plugins :maven-compiler-plugin:3. 8.0:编译

java - RestTemplate.postForObject 和列表

syntax-error - 如何修复 YAML 语法错误 : did not find expected '-' indicator while parsing a block?

r - 使用 R markdown 和 knitr 生成 PDF 文件,将 R 对象用于 YAML header

java - 即使数据库已关闭,如何使 Spring 服务器启动?

java - 无效定义异常 : No serializer found for inner class

javascript - 需要在 Azure Devops 中使用 build.yaml 构建 javascript 应用程序

typescript - 有没有办法在 typescript 中自动生成 Azure Functions 的 swagger 文档?