return new Docket(DocumentationType.SWAGGER_2).apiInfo(apiInfo()).select() .apis(Predicates.not(RequestHandlerSelectors.basePackage("org.springframework.boot"))) .build(); } }