问题
I wanna change my swagger-ui path from localhost:8080/swagger-ui.html
to
localhost:8080/myapi/swagger-ui.html
in springboot
redirect is helpless to me
回答1:
If you are using spring boot then please update application.properties file and write here
server.servlet.context-path=/myapi
it will redirect you as you want.
来源:https://stackoverflow.com/questions/57193286/how-to-change-swagger-ui-html-default-path