title: Avoiding default basic-error-controller from swagger api
body: <p>I'm using <strong>swagger2</strong> in my spring boot project. It's working well, but I need to exclude the <code>basic-error-controller</code> from the api. Currently I'm using the following code using regex. It's working but is there any perfect way to do this.</p>
  
  <p><strong>CODE :</strong></p>
  
  <pre><code>@Bean
  public Docket demoApi() {
      return new Docket(DocumentationType.SWAGGER_2)
              .select()
              .apis(RequestHandlerSelectors.any())
              .paths(PathSelectors.regex('(?!/error.*).*'))
              .build()
  }
  </code></pre>