Uday Kiran
Uday Kiran

Reputation: 612

swagger ui is not showing any of rest resources

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

Answers (1)

earandap
earandap

Reputation: 1496

enter image description hereTry without regex.

@Bean
public Docket productApi() {
      return new Docket(DocumentationType.SWAGGER_2).
                    select()
                    .apis(RequestHandlerSelectors.any())
                    .paths(PathSelectors.any())
                    .build()
                    .apiInfo(metaInfo());
}

Upvotes: 1

Related Questions