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: 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 SolutionsJava – How to change basePath for Springfox Swagger 2.0 @Bean public Docket newsApi(ServletContext servletContext) { return new Docket(DocumentationType.SWAGGER_2).pathProvider(new RelativePathProvider(servletContext) { @Override public String getApplicationBasePath() { return "/serviceName" + super.getApplicationBasePath(); } }).host("proxyURL"); } Spring + Springfox + Header Parameters You could use the globalOperationParametersin the docket definition. For e.g. new Docket(...) .globalOperationParameters( Arrays.asList(new ParameterBuilder() .name("header") .description("Description of header") .modelRef(new ModelRef("string")) .parameterType("header") .required(true) .build())) See #22 in the documentation for more information. Related Topic
Best Answer
You can restrict the request handler selector to scan only the package of your project: