Reputation: 612
I am not able see any of the resource in swagger UI [ http://localhost:8088/swagger-ui.html ],
Followed example - https://github.com/TechPrimers/spring-boot-swagger-example
Tried to see the base pacakage is correct or not , everything looks okay.. also change the code
.apis(RequestHandlerSelectors.any().paths(PathSelectors.any())
Expectation is to display the resources as configured in SwaggerConfig.java
Upvotes: 0
Views: 1262
Reputation: 1496
@Bean
public Docket productApi() {
return new Docket(DocumentationType.SWAGGER_2).
select()
.apis(RequestHandlerSelectors.any())
.paths(PathSelectors.any())
.build()
.apiInfo(metaInfo());
}
Upvotes: 1