title: Spring Boot and Swagger
body: <p>I have a spring boot 1.5.1RELEASE app that I am trying to use Swagger with.  I added the dependencies:</p>
  
  <pre><code>compile group: 'io.springfox', name: 'springfox-swagger2', version: '2.5.0'
  compile group: 'io.springfox', name: 'springfox-swagger-ui', version: '2.5.0'compile('org.springframework.boot:spring-boot-devtools')
  compile("org.springframework.boot:spring-boot-starter-web:1.5.1RELEASE)
  </code></pre>
  
  <p>And then a /config class:</p>
  
  <pre><code>@Configuration
  @EnableSwagger2
  public class SwaggerConfig {    
      @Bean
      public Docket api() {    
          return new Docket(DocumentationType.SWAGGER_2).select().apis(RequestHandlerSelectors.any())
                          .paths(PathSelectors.any()).build();           
      }    
  
      private ApiInfo apiInfo() {
          return new ApiInfoBuilder()
                          .title("My API Documentation ")
                          .description("Swagger API Documentation provided for your viewing pleasure")
                          .version("1.0")
                          .build();
      }
  }
  </code></pre>
  
  <p>I have a GET endpoint</p>
  
  <pre><code>@Api(value = "/words", description = "Words API", produces = "application/json")
  @RestController
  @RequestMapping("/words")
  public class WordsController {
  
  @ApiOperation(value = "getAllWords", nickname = "getAllWords",
                response = ResponseEntity.class, httpMethod = "GET")
  @ApiResponses(value = {
                  @ApiResponse(code = 200, message = "Success", response = ResponseEntity.class),
                  @ApiResponse(code = 500, message = "Failure")
                  })
  @RequestMapping( method = RequestMethod.GET)
  @ResponseBody
      public ResponseEntity getAllWords() {
  ...}
  </code></pre>
  
  <p>But when I access my api at <code>http://localhost:3000/swagger-ui.html</code> (I have my server configured to run on port 3000 I get only the green swagger bar
  <a href="https://i.stack.imgur.com/LJU0h.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LJU0h.png" alt="enter image description here"></a></p>
  
  <p>I am building this off several tutorials, but I can't see why my Swagger documentation is not being presented</p>