【发布时间】:2022-03-30 03:01:17
【问题描述】:
带有 Springdoc 的 Spring Boot 2.6.3。
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-ui</artifactId>
<version>1.6.5</version>
</dependency>
在applicaton.yaml 中,当我将路径设置为/v3/api-docs 或将其删除时,这意味着使用默认路径“/v3/api-docs”。
Swagger UI 页面使用 API 正确显示
http://localhost:8080/swagger-ui/index.html
但我想覆盖如下路径
api-docs.path: /bus/v3/api-docs
然后 Swagger UI 显示“Failed to load remote configuration”错误:
【问题讨论】:
标签: spring-boot swagger-ui springdoc springdoc-openapi-ui