title: I get 404, when trying to open swagger-ui.html
body: <p>I haven't Spring Boot, only Spring MVC and Security.
  My config:</p>
  <pre><code>@Configuration
  @EnableTransactionManagement
  @EnableWebMvc
  @EnableSwagger2
  @PropertySource(&quot;classpath:access.properties&quot;)
  @ComponentScan(basePackages = {&quot;com.company.service&quot;, &quot;com.company.dao&quot;, &quot;com.company.controller&quot;})
  
  public class SpringConfig extends WebMvcConfigurationSupport {
  
  @Value(&quot;${url}&quot;)
  private String URL;
  @Value(&quot;${user}&quot;)
  private String USER;
  @Value(&quot;${password}&quot;)
  private String PASSWORD;
  
  @Bean
  public Docket api() {
      return new Docket(DocumentationType.SWAGGER_2)
              .select()
              .apis(RequestHandlerSelectors.any())
              .paths(PathSelectors.any())
              .build();
  }
  
  @Override
  public 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><code>pom.xml</code></p>
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;io.springfox&lt;/groupId&gt;
          &lt;artifactId&gt;springfox-swagger2&lt;/artifactId&gt;
          &lt;version&gt;2.9.2&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;io.springfox&lt;/groupId&gt;
          &lt;artifactId&gt;springfox-swagger-ui&lt;/artifactId&gt;
          &lt;version&gt;2.9.2&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  <p>On <code>http://localhost:8080/api/v2/api-docs</code> i get enormous JSON, but whe trying to get ui on <code>http://localhost:8080/api/swagger-ui.html</code> i get tomcat 404 not found</p>
  <p><code>Tomcat Log</code></p>
  <pre><code>0:0:0:0:0:0:0:1 - - [30/Jun/2020:11:50:09 +0300] &quot;GET /api/v2/api-docs HTTP/1.1&quot; 200 20832
  0:0:0:0:0:0:0:1 - - [30/Jun/2020:11:51:51 +0300] &quot;GET /api/swagger-ui.html HTTP/1.1&quot; 404 702
  0:0:0:0:0:0:0:1 - - [30/Jun/2020:11:51:54 +0300] &quot;GET /api/swagger-ui.html HTTP/1.1&quot; 404 702
  </code></pre>
  <p>Many articles talk about possible solutions to the problem using the Spring Boot or adding annotation <code>@EnableSwagger2</code>, but it's useless in my case.</p>