How to change Swagger-ui URL? -


i have tried change swagger url, right have "http://localhost:8080/context-root/rest/swagger-ui.html", want "http://localhost:8080/swagger". tried using docket.host("swagger"), browser spinning. , not loading screen.

    <dependency>         <groupid>io.springfox</groupid>         <artifactid>springfox-swagger2</artifactid>         <version>2.4.0</version>     </dependency>      <dependency>         <groupid>io.springfox</groupid>         <artifactid>springfox-swagger-ui</artifactid>         <version>2.4.0</version>     </dependency> 

can 1 that?


Comments