diff --git a/docs/asciidoc/common-problems.adoc b/docs/asciidoc/common-problems.adoc index c2cf9021e3f..cfff47c22ee 100644 --- a/docs/asciidoc/common-problems.adoc +++ b/docs/asciidoc/common-problems.adoc @@ -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/"); } ---- @@ -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. \ No newline at end of file + By defining the Tag on the docket, we are referencing a real tag defined by you.