title: How to integrate swagger with jersey + spring-boot
body: <p>I am using springboot + jersey for web restful implementation. Now I am going to integrate swagger into our application.  I did following.</p>
  
  <pre><code>@Configuration
  @EnableSwagger2
  public class JerseyConfiguration extends ResourceConfig {
  
      public JerseyConfiguration(){
          register(HelloworldAPI.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("/");
          beanConfig.setResourcePackage("com.cooltoo.api");
          beanConfig.setPrettyPrint(true);
          beanConfig.setScan(true);
      }
  }
  </code></pre>
  
  <p>I added following dependences on build.gradle:</p>
  
  <pre><code>compile('io.springfox:springfox-swagger2:'+springfoxSwaggerVersion)
  compile('io.springfox:springfox-petstore:'+springfoxSwaggerVersion)
  compile('io.springfox:springfox-swagger-ui:'+springfoxSwaggerVersion)
  compile('io.swagger:swagger-jersey2-jaxrs:1.5.8')
  </code></pre>
  
  <p>I was able to launch the web application but I wander which url is for swagger? I tried with <a href="http://localhost:8080" rel="nofollow">http://localhost:8080</a>, <a href="http://localhost:8080/swagger" rel="nofollow">http://localhost:8080/swagger</a>, and <a href="http://localhost:8080/swagger-ui.html" rel="nofollow">http://localhost:8080/swagger-ui.html</a>. But none of them could be accessed. </p>