Spring Boot 2.6.3 与 Springdoc。
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-ui</artifactId>
<version>1.6.5</version>
</dependency>
Run Code Online (Sandbox Code Playgroud)
在 中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
Run Code Online (Sandbox Code Playgroud)
然后 Swagger UI 显示“无法加载远程配置”错误:
