Guest User

Untitled

a guest
Mar 21st, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. compile group: 'io.springfox', name: 'springfox-swagger2', version: '2.7.0'
  2. compile group: 'io.springfox', name: 'springfox-data-rest', version: '2.7.0'
  3. compile group: 'io.springfox', name: 'springfox-swagger-ui', version: '2.7.0'
  4. classpath(group: 'org.springframework.boot', name: 'spring-boot-gradle-plugin', version: '1.5.6.RELEASE')
  5.  
  6. @Configuration
  7. @EnableSwagger2
  8. public class SwaggerConfig {
  9. @Bean
  10. public Docket api() {
  11. return new Docket(DocumentationType.SWAGGER_2)
  12. .select()
  13. .apis(RequestHandlerSelectors.basePackage("org.kp.wa.services.poss.controller"))
  14. .paths(PathSelectors.any())
  15. .build();
  16. }
  17. }
  18.  
  19. Whitelabel Error Page
  20.  
  21. This application has no explicit mapping for /error, so you are seeing this as a fallback.
  22.  
  23. Wed Mar 21 11:00:09 PDT 2018
  24. There was an unexpected error (type=Not Found, status=404).
  25. No message available
Add Comment
Please, Sign In to add comment