Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7581133

Browse files
authored
Merge pull request springfox#3523 from hiroshi-maekawa/patch-1
[Document] Update swagger-ui URL location.
2 parents 07a4c86 + 4d4c418 commit 7581133

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/asciidoc/getting_started.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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)