Remove Basic Error Controller In SpringFox SwaggerUI

springfoxswagger-2.0swagger-ui

Is there a way i can remove the "basic-error-controller" from springfox swagger-ui?

Picture:

enter image description here

Best Answer

You can restrict the request handler selector to scan only the package of your project:

    return new Docket( DocumentationType.SWAGGER_2)
        .select()
        .apis( RequestHandlerSelectors.basePackage( "your package" ) )
        ...
Related Topic