File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ NOTE: For non-boot applications `springfox-swagger-ui` is no longer automaticall
136136using 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`
140140OR `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
141141using configuration properties if not needed.
142142
@@ -339,15 +339,15 @@ dependencies {
339339
340340Pulling 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
344344image::springfox-swagger-ui.png[Swagger UI]
345345
346346The swagger ui version is specified in ./build.gradle where `swaggerUiVersion` is a git tag on the
347347https:// github.com/swagger-api/swagger-ui[swagger-ui repo].
348348
349349All 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
352352By default Spring Boot has sensible defaults for serving content from webjars. To configure vanilla spring web mvc
353353apps to serve webjar content see the http://www.webjars.org/documentation#springmvc[webjar documentation]
You can’t perform that action at this time.
0 commit comments