Skip to content

Instantly share code, notes, and snippets.

@indrabasak
Last active April 4, 2017 17:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save indrabasak/829ace67721b9ea7a81ee118151daa96 to your computer and use it in GitHub Desktop.
Save indrabasak/829ace67721b9ea7a81ee118151daa96 to your computer and use it in GitHub Desktop.
SWAGGER2_INTEGRATION_WITH_SPRING_REST
@Configuration
@EnableSwagger2
public class SwaggerConfiguration {
@Bean
public Docket api() {
return new Docket(DocumentationType.SWAGGER_2).select().apis(
RequestHandlerSelectors.any()).paths(PathSelectors.any()).build();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment