title: How to fully disable swagger-ui in spring-boot?(/swagger-ui.html should return 404)
body: <p>I have read following topic:
  <a href="https://stackoverflow.com/a/27976261/2674303">Disabling Swagger with Spring MVC</a></p>
  
  <p>and I wrote:</p>
  
  <pre><code>@Bean
  public Docket api() {
      return new Docket(DocumentationType.SWAGGER_2)
              .select()
              .apis(RequestHandlerSelectors.basePackage("com.project.name.controller"))
              .paths(PathSelectors.ant("/api/**"))
              .build()
              .apiInfo(apiInfo())
              .enable(false);
  }
  </code></pre>
  
  <p>But in case if I try to access swagger ui: <code>localhost:8080/swagger-ui.html</code><br>
  I see
  <a href="https://i.stack.imgur.com/Q1Ihv.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/Q1Ihv.jpg" alt="enter image description here"></a></p>
  
  <p>It looks not accurate. Can I fully disabled this URL ? 404 for example or something like this.</p>