swagger ui 没有显示任何剩余资源

swagger ui is not showing any of rest resources

我无法看到 swagger 中的任何资源 UI [ http://localhost:8088/swagger-ui.html ],

以下示例 - https://github.com/TechPrimers/spring-boot-swagger-example

尝试查看基础包是否正确,一切正常.. 也更改代码

.apis(RequestHandlerSelectors.any().paths(PathSelectors.any())

期望显示 SwaggerConfig.java

中配置的资源

尝试不使用正则表达式。

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