SSK*_*SSK 5 swagger swagger-ui spring-boot springdoc-openapi-ui
我正在使用springdoc-openapi-ui,当我点击http://localhost:8080/swagger-ui.html URL 时,它总是重定向到http://localhost:8080/swagger-ui/index.html?configUrl=/v3/api-docs /招摇配置。有什么方法可以阻止这种重定向并在http://localhost:8080/swagger-ui.html上加载 swagger 。
我在Github网站上问过同样的问题。下面提供了链接
https://github.com/springdoc/springdoc-openapi/issues/742#issue-642810354
得到了其中一位贡献者的回复
springdoc-openapi uses an internal redirect to resolve the necessary swagger resources. This the way the library is built.
You use you own version of swagger-ui, so you can add your custom Logic, without having to rely on springdoc-openapi-ui.
| 归档时间: |
|
| 查看次数: |
9342 次 |
| 最近记录: |