在 spring 项目中,我从 swagger v 切换。2 在 springdoc-openapi (swagger v. 3) 上,一切都设置好了,一切正常,但是当使用默认值时,index.html 被添加到 URL 中,即 我从 http://localhost:8080/swagger-ui.html 开始工作,但是在链接之后,URL 更改为 http://localhost:8080/swagger-ui/index.html#/... ,并且最重要的是,索引 http://localhost:8080/swagger-ui/index.html# 加载了 Swagger Petstore
请告诉我如何从我的代码中删除这个示例项目
通过在spring配置yml/properties中加入参数springdoc.swagger-ui.disable-swagger-default-url = true解决问题
尝试在 swagger ui 中更改 index.html
我手动删除了结果,但相信我,我的 yaml 文件在那里
特别是因为该网站本身也展示了如何使用