title: No mapping found for / GET / swagger
body: <p>I am trying to configure swagger for a project but I receive an error infinite times:</p>
  <pre><code>o.s.web.servlet.PageNotFound             : No mapping for GET /project1/api/null/swagger-resources/configuration/ui&quot; 
  o.s.web.servlet.PageNotFound             : No mapping for GET /project1/api/null/swagger-resources/configuration/ui&quot; 
  o.s.web.servlet.PageNotFound             : No mapping for GET /project1/api/null/swagger-resources/configuration/ui&quot; 
  o.s.web.servlet.PageNotFound             : No mapping for GET /project1/api/null/swagger-resources/configuration/ui&quot; 
  ................
  </code></pre>
  <p>I have a multi project layer. The structure is :</p>
  <p>ProjectName</p>
  <p>-- project1</p>
  <pre><code>  --setting.gradle
  
    --build.gradle
  </code></pre>
  <p>-- project2</p>
  <pre><code>  --setting.gradle
  
    --build.gradle
  </code></pre>
  <p>--setting.gradle</p>
  <p>In each build.gradle I have this dependencies:</p>
  <pre><code>compile group: 'io.springfox', name: 'springfox-swagger2', version: '2.9.2'
  compile group: 'io.springfox', name: 'springfox-swagger-ui', version: '2.9.2'
  </code></pre>
  <p>The SwaggerConfiguration class is :</p>
  <pre><code>@EnableSwagger2
  @Configuration
  public class SwaggerConfiguration {
  
      @Bean
      public Docket productApi() {
          return new Docket(DocumentationType.SWAGGER_2)
                  .select()
                  .apis(RequestHandlerSelectors.any())
                  .paths(PathSelectors.any())
                  .build()
                  .pathMapping(&quot;/&quot;);
      }
  }
  </code></pre>
  <p>And also i have a WebConfigure class:</p>
  <pre><code>@Configuration
  @EnableWebMvc
  @Slf4j
  public class WebConfigure extends WebMvcConfigurationSupport {
      @Bean
      public AuthorizationInterceptor requestInterceptor() {
          return new AuthorizationInterceptor();
      }
  
      @Override
      protected void addInterceptors(InterceptorRegistry registry) {
          log.info(&quot;Adding interceptor [{}]&quot;, AuthorizationInterceptor.class.getName());
          registry.addInterceptor(requestInterceptor());
      }
  
      @Override
      protected void addResourceHandlers(ResourceHandlerRegistry registry) {
          registry.addResourceHandler(&quot;swagger-ui.html&quot;)
                  .addResourceLocations(&quot;classpath:/META-INF/resources/&quot;);
          registry.addResourceHandler(&quot;/webjars/**&quot;)
          .addResourceLocations(&quot;classpath:/META-INF/resources/webjars/&quot;);
      }
  }
  
  </code></pre>
  <p>If I try to access http://localhost:8090/project1/api/swagger-ui.html I receive this error:</p>
  <p><a href="https://i.stack.imgur.com/ntC4u.png" rel="nofollow noreferrer">Swagger error</a></p>