我想换我的招摇-ui 来自 localhost:8080/swagger-ui.html
的路径到localhost:8080/myapi/swagger-ui.html
在 springboot
重定向对我来说很无助
最佳答案
在 Spring Boot 的 application.properties 中
springdoc.swagger-ui.path=/swagger-ui-custom.html
在你的情况下,它将是springdoc.swagger-ui.path=/myapi/swagger-ui.html
关于spring-boot - 如何更改 swagger-ui.html 默认路径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57193286/