Last active
April 4, 2017 17:04
-
-
Save indrabasak/829ace67721b9ea7a81ee118151daa96 to your computer and use it in GitHub Desktop.
SWAGGER2_INTEGRATION_WITH_SPRING_REST
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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