title: Swagger Springfox Configuration Issue
body: <p>I have an application that uses Spring MVC to handle REST calls, the Controllers are REST Controllers and annotated with <code>@RestController</code>, and the controller and its methods are annotated with <code>@RequestMapping</code>.</p>
  
  <p>I'm trying to add Swagger to generate documentation for the existing REST services. I'm trying to add it for one as a test to see what it looks like. I've added the <code>springfox</code> and <code>ui</code> libraries, added swagger config classes and bean definitions to the <code>spring context xml</code> file. I can hit the <code>swagger-ui.html</code> link, but it's not generating any documentation at all. Because of the sparse documentation, I have no idea what I'm doing wrong or misconfigured, and Googling the issue doesn't produce anything useful.</p>
  
  <p>Can anyone provide some suggestions of what I might have done wrong, or alternatively, some better documentation than I've found so far?</p>
  
  <p>I added springfox-swagger2 and the associated ui entry to my pom file, added this: 
  to my spring file, along with two new bean definitions for these classes:</p>
  
  <pre><code> @Configuration
  @EnableSwagger2
  public class ApplicationSwaggerConfig {
  
      @Bean
      public Docket api() {
          return new Docket(DocumentationType.SWAGGER_2)
                  .select()
                  .apis(RequestHandlerSelectors.any())
                  .paths(PathSelectors.any())
                  .build();
      }
  
  }
  
  @EnableWebMvc
  public class SwaggerConfiguration extends WebMvcConfigurerAdapter {
  
      @Override
      public void addResourceHandlers(ResourceHandlerRegistry registry) {
          registry.addResourceHandler("swagger-ui.html")
                  .addResourceLocations("classpath:/META-INF/resources/");
  
          registry.addResourceHandler("/webjars/**")
                  .addResourceLocations("classpath:/META-INF/resources/webjars/");
      }
  
  }
  </code></pre>
  
  <p>I've tried defining the beans in the second class in my spring xml, but that didn't work either. I'm stumped. I've done what the documentation said to do, and it's not working. Any ideas?</p>