title: How to specify my restful API for swagger-ui in spring-boot application
body: <p>I am using spring-boot + jersey as restful implementation. I have setup the swagger and I am able to open the swagger ui on the browser. But the swagger-ui doesn't have any API to show, it is an empty page. Below is the code I setup for configuring swagger. How can I let swagger to scan my API definition in jersey?</p>
  
  <p><strong>SwaggerConfiguration.java</strong></p>
  
  <pre class="lang-java prettyprint-override"><code>@Configuration
  @EnableSwagger2
  public class SwaggerConfiguration  {
  
      @Bean
      public Docket api() {
          return new Docket(DocumentationType.SWAGGER_2).apiInfo(apiInfo())
                  .select()
                  .apis(RequestHandlerSelectors.any())
                  .paths(PathSelectors.regex("/com.hello.*"))
                  .build().pathMapping("/swagger2");
      }
  
      private ApiInfo apiInfo() {
          return new ApiInfoBuilder()
                  .title("App API")
                  .description("App API")
                  .version("1.0.0-SNAPSHOT")
                  .termsOfServiceUrl("")
                  .contact("Cooltoo company")
                  .license("Public")
                  .licenseUrl("http://hello.com/")
                  .build();
  }
  </code></pre>
  
  <p><strong>JerseyConfiguration.java</strong></p>
  
  <pre class="lang-java prettyprint-override"><code>@Configuration
  @EnableSwagger2
  
  @EnableAutoConfiguration
  @Api(value = "home", description = "Demo API")
  @ApplicationPath("/nursego")
  public class JerseyConfiguration extends ResourceConfig {
  
      public JerseyConfiguration() {
          register(BadgeAPI.class);
          register(MultiPartFeature.class);
          register(OrderAPI.class);
          register(NurseAPI.class);
  
          configureSwagger();
      }
  
      private void configureSwagger() {
          BeanConfig beanConfig = new BeanConfig();
          beanConfig.setVersion("1.0.2");
          beanConfig.setSchemes(new String[]{"http"});
          beanConfig.setHost("localhost:8080");
          beanConfig.setBasePath("/nursego");
          beanConfig.setResourcePackage("com.cooltoo.backend.api");
          beanConfig.setPrettyPrint(true);
          beanConfig.setScan(true);
          register( io.swagger.jaxrs.listing.ApiListingResource.class );
          register( io.swagger.jaxrs.listing.SwaggerSerializers.class );
      }
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/tqZ5T.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tqZ5T.png" alt="enter image description here"></a></p>
  
  <p>When I open <a href="http://localhost:8080/swagger-ui.html" rel="nofollow noreferrer">http://localhost:8080/swagger-ui.html</a>, I see below image but none of them are from my API. I don't know where they are from</p>