Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Getter
- @Setter
- @Configuration
- @EnableSwagger2
- @ConfigurationProperties(prefix = "myCoach.swagger")
- public class SwaggerConfiguration {
- //...
- @Bean
- public Docket api() {
- return new Docket(DocumentationType.SWAGGER_2)
- .apiInfo(apiInfo())
- .select()
- .apis(RequestHandlerSelectors.any())
- .paths(paths())
- .build();
- }
- //...
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement