title: Swagger with spring MVC not generating the documentation of the services
body: <p>i am using swagger with spring mvc, the <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.6.1&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.6.1&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>and in spring configuration.xml</p>
  
  <pre><code>&lt;mvc:resources mapping="swagger-ui.html" location="classpath:/META-INF/resources/" /&gt;
  &lt;mvc:resources mapping="/webjars/**"
      location="classpath:/META-INF/resources/webjars/" /&gt;
  </code></pre>
  
  <p>also i use java-based configuration</p>
  
  <pre><code>@Configuration
  @EnableSwagger2
  @PropertySource("classpath:application.properties")
  public class SwaggerConfig extends WebMvcConfigurerAdapter {
  
      @Bean
      public Docket api() {
          return new Docket(DocumentationType.SWAGGER_2).select().apis(RequestHandlerSelectors.any())
                  .paths(PathSelectors.regex("/api/.*")).build().apiInfo(apiInfo());
      }
  
      private ApiInfo apiInfo() {
          return new ApiInfoBuilder().title(" Admin Api").description("Admin Api").version("V1")
                  .termsOfServiceUrl("http://terms-of-services.url").license("LICENSE")
                  .licenseUrl("http://url-to-license.com").build();
      }
  }
  </code></pre>
  
  <p>in the controller i use</p>
  
  <pre><code>@Controller
  @RequestMapping({ "/" })
  @Api(value = "product", description = "Products Web Services") // Swagger annotation
  public class ProductController {
      @ApiOperation(value = "products", nickname = "Get list of all products", response = ProductListResponse.class)
      @RequestMapping(value = "/products", method = RequestMethod.GET)
      public @ResponseBody ProductListResponse getAllProducts(HttpServletResponse httpServletResponse) {
  </code></pre>
  
  <p>in <code>application.propeties</code> i added <code>springfox.documentation.swagger.v2.path=/api-docs</code>.
  that is all information i used to generate documentation 
  using the url <a href="http://localhost:8080/admin-api/admin/api-docs" rel="nofollow noreferrer">http://localhost:8080/admin-api/admin/api-docs</a> , it doesnt generate documentation for the end points</p>
  
  <pre><code>{
  swagger: "2.0",
  info: {
  description: " Admin Api",
  version: "V1",
  title: "Admin Api",
  termsOfService: "http://terms-of-services.url",
  license: {
  name: "LICENSE",
  url: "http://url-to-license.com"
  }
  },
  host: "localhost:8080",
  basePath: "/admin-api/admin"
  }
  </code></pre>