title: Why Swagger ui don't show services in my maven project on Spring?
body: <p>I have a maven project with swagger, when I try to use <a href="http://localhost:8080/swagger-ui.html" rel="nofollow noreferrer">http://localhost:8080/swagger-ui.html</a> don´t show nothing like the image Swagger ui:</p>
  
  <p><a href="https://i.stack.imgur.com/Uo2vc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Uo2vc.png" alt="Swagger ui"></a></p>
  
  <p>my dependencies are in version 7.0 (also I try with 6.2 and 6.3) and my code is: </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();                                           
      }
  }
  </code></pre>
  
  <p>the controller is:</p>
  
  <pre><code>@RestController
  @EnableAutoConfiguration
  @SpringBootApplication
  @EnableSwagger2
  public class Example {
  
  @Autowired
  public AlfrescoService alfrescoService;
  
  @ResponseBody
  @RequestMapping(value = "/hello", method = RequestMethod.GET)
  @ApiOperation(value = "Muestra mensaje", notes = "Retorna mensaje", response = ResponseMessage.class, consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)
  @ApiResponses({
  
          @ApiResponse(code = 200, message = "Documentos obtenidos existosamente.", response = ResponseMessage.class),
          @ApiResponse(code = 404, message = "No se encontraron documentos.", response = ResponseMessage.class) })
  String home() {
      alfrescoService.obtieneSesion();
      return "Hello World!";
  }
  
  @ResponseBody
  @RequestMapping(value = "/", method = RequestMethod.GET)
  String manchester() {
      alfrescoService.obtieneSesion();
      return "United";
  }
  
  @ResponseBody
  @RequestMapping(value = "/uploadDocument", method = RequestMethod.POST)
  String uploadFile(@RequestParam MultipartFile file, @RequestParam String title, @RequestParam String rut,
          @RequestParam String userName, @RequestParam int year) throws Exception {
      if (file.isEmpty()) {
          return "No a ingresado el archivo";
      } else {
          alfrescoService.upload(file, title, rut, userName, year);
          return "OK";
      }
  }
  
  @ResponseBody
  @RequestMapping(value = "/searchDocument", method = RequestMethod.GET)
  String searchDocuments(String uuid) {
      CmisObject doc = alfrescoService.searchDocuments(uuid);
      String info = "uuid:" + 
  doc.getProperty("cmis:objectId").getValueAsString() + "\nTipo del Documento:"
              + doc.getProperty("bc:documentType").getValueAsString() + "\nId 
  Tipo de documento:"
              + doc.getProperty("bc:documentTypeId").getValueAsString() + 
  "\nCodigo tipo de documento:"
              + doc.getProperty("bc:idDocument").getValueAsString() + "\nFolio 
  Documento:"
              + doc.getProperty("bc:folioDocument").getValueAsString() + 
  "\nRut del Cliente:"
              + doc.getProperty("bc:rutClient").getValueAsString() + "\nNombre 
  del cliente:"
              + doc.getProperty("bc:clientName").getValueAsString() + 
  "\nNombre Documento:" + doc.getName();
      return info;
  }
  
  @ResponseBody
  @RequestMapping(value = "/deleteDocument", method = RequestMethod.POST)
  String deleteDocument(String uuid) {
      alfrescoService.deleteDocument(uuid);
      return "Ok";
  }
  
  @ResponseBody
  @RequestMapping(value = "/corruptPDF", method = RequestMethod.POST)
  String corruptPDF(@RequestParam MultipartFile file) throws Exception {      
          return alfrescoService.corruptPDF(file);                    
  }
  
  @ResponseBody
  @RequestMapping(value = "/consumeRest")
  String consumeRest(@RequestParam(required=false,name="login") String login, 
  @RequestParam(required=false,name="password") String password) throws 
  SAXException, IOException, ParserConfigurationException {       
          return alfrescoService.consumeRest(login, password);                
  }   
  
  public static void main(String[] args) throws Exception {
  
      SpringApplication.run(Example.class, args);
  
  }
  }
  </code></pre>
  
  <p>I searched and re searched many times today but just only a post semms like my trouble but it didn´t work. I´m a practician sorry if a basic question.</p>