Remove Basic Error Controller In SpringFox SwaggerUI
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” ) ) …