这不是springfox的故事这是springdoc-openapi的故事。
我当前的依赖
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-ui</artifactId>
<version>1.6.3</version>
</dependency>
我的房产
springdoc.swagger-ui.path=/swagger-ui.html
springdoc.packagesToScan=com.example
springdoc.pathsToMatch=/api/**
springdoc.cache.disabled= true
springdoc.swagger-ui.disable-swagger-default-url=true
这里的请求(localhost:8080/swagger-ui.html(我的服务器响应swagger petstore示例我已经知道petstore-disable(springdoc.swagger-ui.disable-swagger-default-url=true(,但不起作用
另一个问题是如果我在这里请求http://localhost:8080/swagger-ui/index.html?url=/v3/api文档
无法读取控制器信息无法读取控制器信息
您应该始终在输入框中编写/v3/api文档
/输入框中的v3/api文档
如果您请求swagger.html ,我希望/v3/api文档的内容像第二张图片一样显示出来
我该如何解决这个问题?
感谢阅读祝今天愉快
尝试将springdoc-openapi-ui
依赖项升级到版本1.6.8