我使用的是springdoc-openapi-ui
1.6.4和springboot 2.7.5。
我尝试访问http://localhost:8080/swagger-ui.html
,我希望URL会重定向到http://localhost:8080/swagger-ui/index.html?configUrl=/v3/api-docs/swagger-config
,但它总是会重定向到http://localhost:8080/swagger-ui/index.html
我也尝试访问http://localhost:8080/swagger-ui/index.html
,它不会重定向到http://localhost:8080/swagger-ui/index.html?configUrl=/v3/api-docs/swagger-config
。
有人能帮我把网址重定向到http://localhost:8080/swagger-ui/index.html?configUrl=/v3/api-docs/swagger-config
吗?
发布于 2022-11-10 06:58:27
将springdoc-openapi-ui
升级到1.6.6解决了我的问题。
https://stackoverflow.com/questions/74384804
复制相似问题