Skip to content

Instantly share code, notes, and snippets.

@vikasontech
Created January 16, 2020 09:50
@Configuration
@EnableSwagger2WebFlux
class SwaggerConfig {
@Bean
fun api(): Docket =
Docket(DocumentationType.SWAGGER_2)
.select()
.apis(RequestHandlerSelectors.basePackage("org.personal.finance.personalFinance.web"))
.paths(PathSelectors.any())
.build()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment