Skip to content

Commit 7787050

Browse files
Update swagger-ui URL location.
There are some documents which refers that swagger-ui location is `http://{host}/swagger-ui.html`. This PR fixes those issues.
1 parent 07a4c86 commit 7787050

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/asciidoc/getting_started.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ NOTE: For non-boot applications `springfox-swagger-ui` is no longer automaticall
136136
using a resource handler configurer (`WebFluxConfigurer` or `WebMvcConfigurer`). Here is how it is configured in
137137
`springfox-boot-starter`
138138

139-
NOTE: swagger-ui location has moved from `http://host/context-path/swagger-ui.html` to `http://host/context-path/swagger-ui/index.html`
139+
NOTE: swagger-ui location has moved from `http://host/context-path/` to `http://host/context-path/swagger-ui/index.html`
140140
OR `http://host/context-path/swagger-ui/` for short. This makes it work much better with pulling it as a web jar and turning it off
141141
using configuration properties if not needed.
142142

@@ -339,15 +339,15 @@ dependencies {
339339

340340
Pulling in the dependency creates a webjar containing the swagger-ui static content. It adds a JSON endpoint
341341
`/swagger-resources` which lists all of the swagger resources and versions configured for a given
342-
application. The Swagger UI page should then be available at http://localhost:8080/swagger-ui.html[]
342+
application. The Swagger UI page should then be available at http://localhost:8080/swagger-ui/index.html[]
343343

344344
image::springfox-swagger-ui.png[Swagger UI]
345345

346346
The swagger ui version is specified in ./build.gradle where `swaggerUiVersion` is a git tag on the
347347
https:// github.com/swagger-api/swagger-ui[swagger-ui repo].
348348

349349
All content is served from a webjar convention, relative url taking the following form:
350-
`webjars/springfox-swagger-ui/{releaseVersion}/swagger-ui.html`
350+
`webjars/springfox-swagger-ui/{releaseVersion}/swagger-ui/index.html`
351351

352352
By default Spring Boot has sensible defaults for serving content from webjars. To configure vanilla spring web mvc
353353
apps to serve webjar content see the http://www.webjars.org/documentation#springmvc[webjar documentation]

0 commit comments

Comments
 (0)