I am using Springboot autoconfiguration, and currently all my Feign endpoints are exposed in swagger-ui. How can I disable this feature?
So far the best way to not include unrelated endpoints is through Swagger Docker
, e.g.
@Configuration
@EnableSwagger2
class SwaggerConf {
@Bean
Docket allApis() {
return new Docket(DocumentationType.SWAGGER_2)
.groupName("all")
.select().apis(RequestHandlerSelectors.basePackage("com.example.base"))
.build();
}
}