Skip to content

Commit

Permalink
Merge pull request #1483 from qwang1990/master
Browse files Browse the repository at this point in the history
Update common-problems.adoc
  • Loading branch information
dilipkrish committed Sep 12, 2016
2 parents 4478443 + 436c90d commit 7c94d80
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions docs/asciidoc/common-problems.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -258,18 +258,19 @@ For e.g. One could move Swagger UI under `/documentation` using this code.
----
@Override
public void addViewControllers(ViewControllerRegistry registry) {
registry.addRedirectViewController("/documentation/v2/api-docs", "/v2/api-docs");
registry.addRedirectViewController("/documentation/configuration/ui", "/configuration/ui");
registry.addRedirectViewController("/documentation/configuration/security", "/configuration/security");
registry.addRedirectViewController("/documentation/swagger-resources", "/swagger-resources");
registry.addRedirectViewController("/documentation", "/documentation/swagger-ui.html");
registry.addRedirectViewController("/documentation/", "/documentation/swagger-ui.html");

registry.addRedirectViewController("/documentation/v2/api-docs", "/v2/api-docs?group=restful-api");
registry.addRedirectViewController("/documentation/swagger-resources/configuration/ui","/swagger-resources/configuration/ui");
registry.addRedirectViewController("/documentation/swagger-resources/configuration/security","/swagger-resources/configuration/security");
registry.addRedirectViewController("/documentation/swagger-resources", "/swagger-resources");
}

@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
registry
.addResourceHandler("/documentation/**").addResourceLocations("classpath:/META-INF/resources/");
registry.
addResourceHandler("/documentation/swagger-ui.html**").addResourceLocations("classpath:/META-INF/resources/swagger-ui.html");
registry.
addResourceHandler("/documentation/webjars/**").addResourceLocations("classpath:/META-INF/resources/webjars/");
}
----
Expand Down Expand Up @@ -342,4 +343,4 @@ A. If you have recursively defined objects, I would try and see if providing an
description that happens to be the same as the tag name. So in effect we are synthesizing a pseudo Tag by referencing
one on the operation.
By defining the Tag on the docket, we are referencing a real tag defined by you.
By defining the Tag on the docket, we are referencing a real tag defined by you.

0 comments on commit 7c94d80

Please sign in to comment.