Swagger not detecting Api built with Spring Data Rest

后端 未结 5 1885
我在风中等你
我在风中等你 2021-01-19 18:10

I\'m working on a spring boot application using swagger to generate docs for my API ,I\'m using Spring data rest to generate the Api but when I run the app I get the swagger

5条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-19 18:53

    Try RequestHandlerSelectors.any() instead of RequestHandlerSelectors.basePackage("").

提交回复
热议问题