title: Swagger + Spring boot doesn't show API end points in http://localhost:8080/home/swagger-ui.html
body: <p>I have a spring boot application runs on jetty + swagger
  and I don't see any end point specification when i go to  <a href="http://localhost:8080/home/swagger-ui.html" rel="nofollow noreferrer">http://localhost:8080/home/swagger-ui.html</a> (see attachment) even do I wrote a controller and have an endpoint there.</p>
  
  <p>my Application code is:</p>
  
  <pre><code>package com.MyService;
  
  import org.springframework.boot.SpringApplication;
  import org.springframework.boot.autoconfigure.SpringBootApplication;
  import springfox.documentation.swagger2.annotations.EnableSwagger2;
  
  @SpringBootApplication
  @EnableSwagger2
  public class MyServiceApplication {
  
      public static void main(String[] args) {
          SpringApplication.run(GcmAuthenticationServiceApplication.class, args);
      }
  
  
  }
  </code></pre>
  
  <p>in pom.xml I use:</p>
  
  <pre><code>    &lt;!-- Swagger 2.0 support --&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;io.springfox&lt;/groupId&gt;
                  &lt;artifactId&gt;springfox-swagger2&lt;/artifactId&gt;
                  &lt;version&gt;2.8.0&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.8.0&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;javax.xml.bind&lt;/groupId&gt;
                  &lt;artifactId&gt;jaxb-api&lt;/artifactId&gt;
                  &lt;version&gt;2.3.0&lt;/version&gt;
              &lt;/dependency&gt;
  </code></pre>
  
  <p>my controller:</p>
  
  <pre><code>package com.MyService.controller;
  
  import com.MyService.model.RegistrationData;
  import io.swagger.annotations.*;
  import org.springframework.http.HttpStatus;
  import org.springframework.http.ResponseEntity;
  import org.springframework.web.bind.annotation.RequestBody;
  import org.springframework.web.bind.annotation.RequestMapping;
  import org.springframework.web.bind.annotation.RequestMethod;
  
  import javax.validation.Valid;
  
  @Api(value = "register", description = "the registration API")
  public interface RegistrationApi {
  
  
  
      @ApiOperation(value = "Register user", nickname = "register", notes = "", authorizations = {
              @Authorization(value = "petstore_auth", scopes = {
                      @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
                      @AuthorizationScope(scope = "read:pets", description = "read your pets")
              })
      }, tags={ "register", })
      @ApiResponses(value = {
              @ApiResponse(code = 405, message = "Invalid input") })
      @RequestMapping(value = "/register",
              produces = { "application/json", "application/xml" },
              consumes = { "application/json", "application/xml" },
              method = RequestMethod.POST)
      default ResponseEntity&lt;Void&gt; registerUser(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true )
                                                @Valid @RequestBody RegistrationData body) {
  
          return new ResponseEntity&lt;&gt;(HttpStatus.NOT_IMPLEMENTED);
      }
  
  }
  
  
  
  ------
  
  package com.MyService.controller;
  
  
  import com.MyService.model.RegistrationData;
  import com.MyService.service.RegistrationService;
  import org.springframework.beans.factory.annotation.Autowired;
  import org.springframework.http.HttpStatus;
  import org.springframework.http.ResponseEntity;
  import org.springframework.web.bind.annotation.RequestBody;
  import org.springframework.web.bind.annotation.RequestMapping;
  import org.springframework.web.bind.annotation.RequestMethod;
  import org.springframework.web.bind.annotation.RestController;
  
  @RestController
  @RequestMapping("/api/v1")
  public class RegistrationController implements  RegistrationApi{
  
  
      private RegistrationService registrationService;
  
  
      @Autowired
      public void setProductService(RegistrationService registrationService) {
          this.registrationService = registrationService;
      }
  
  
      @RequestMapping(value = "/register", method = RequestMethod.POST)
      public ResponseEntity registerUser(@RequestBody RegistrationData registrationData){
          //todo call service to rgeister
          return new ResponseEntity("user register successfully", HttpStatus.OK);
      }
  
  }
  </code></pre>
  
  <p>my SwaggerConfig:</p>
  
  <pre><code>package com.MyService.config;
  
  
  import org.springframework.context.annotation.Bean;
  import org.springframework.context.annotation.Configuration;
  import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
  import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;
  import springfox.documentation.builders.RequestHandlerSelectors;
  import springfox.documentation.spi.DocumentationType;
  import springfox.documentation.spring.web.plugins.Docket;
  import springfox.documentation.swagger2.annotations.EnableSwagger2;
  
  import static springfox.documentation.builders.PathSelectors.regex;
  @Configuration
  @EnableSwagger2
  public class Swagger2Config extends WebMvcConfigurationSupport {
      @Bean
      public Docket api() {
          return new Docket(DocumentationType.SWAGGER_2)
                  .select().apis(RequestHandlerSelectors.basePackage("guru.springframework.controllers"))
                  .paths(regex("/product.*")).build();
  
      }
  
      @Override
      protected 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>my swagger documentation look as the following:</p>
  
  <p><a href="https://i.stack.imgur.com/rkZEs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rkZEs.png" alt="enter image description here"></a></p>