title: Swagger-ui.html not showing api list
body: <p>I'm using spring boot + swagger 2 for documenting all the REST API .I'm able to list all the api of a controller when i have the below project structure.</p>
  
  <p><a href="https://i.stack.imgur.com/3Vs2n.png" rel="noreferrer"><img src="https://i.stack.imgur.com/3Vs2n.png" alt="enter image description here"></a></p>
  
  <p>If i move the swaggerconfig.java to the config package then i'm not able to list all api of a controller.i'm getting
  <a href="https://i.stack.imgur.com/oRIA1.png" rel="noreferrer"><img src="https://i.stack.imgur.com/oRIA1.png" alt="enter image description here"></a></p>
  
  <p>This is my <strong>SwaggerConfig.java</strong></p>
  
  <pre><code>@Configuration
  @EnableAutoConfiguration
  //@ComponentScan(basePackages="com.javainuse.swaggertest")
  @EnableSwagger2
  public class SwaggerConfig {
  
      @Bean
      public Docket postsApi() {
          return new Docket(DocumentationType.SWAGGER_2).groupName("public-api")
                  .apiInfo(apiInfo()).select().paths(postPaths()).build();
      }
  
      private Predicate&lt;String&gt; postPaths() {
          return or(regex("/api/posts.*"), regex("/api/javainuse.*"));
      }
  
      private ApiInfo apiInfo() {
          return new ApiInfoBuilder().title("JavaInUse API")
                  .description("JavaInUse API reference for developers")
                  .termsOfServiceUrl("http://javainuse.com")
                  .contact("javainuse@gmail.com").license("JavaInUse License")
                  .licenseUrl("javainuse@gmail.com").version("1.0").build();
      }
  
  }
  </code></pre>
  
  <p>What i'm doing wrong</p>