Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- compile group: 'io.springfox', name: 'springfox-swagger2', version: '2.7.0'
- compile group: 'io.springfox', name: 'springfox-data-rest', version: '2.7.0'
- compile group: 'io.springfox', name: 'springfox-swagger-ui', version: '2.7.0'
- classpath(group: 'org.springframework.boot', name: 'spring-boot-gradle-plugin', version: '1.5.6.RELEASE')
- @Configuration
- @EnableSwagger2
- public class SwaggerConfig {
- @Bean
- public Docket api() {
- return new Docket(DocumentationType.SWAGGER_2)
- .select()
- .apis(RequestHandlerSelectors.basePackage("org.kp.wa.services.poss.controller"))
- .paths(PathSelectors.any())
- .build();
- }
- }
- Whitelabel Error Page
- This application has no explicit mapping for /error, so you are seeing this as a fallback.
- Wed Mar 21 11:00:09 PDT 2018
- There was an unexpected error (type=Not Found, status=404).
- No message available
Add Comment
Please, Sign In to add comment