项目报错:
Failed to start bean 'documentationPluginsBootstrapper';
集合Swagger的时候,不要再接口中的参数中引用实体类,会导致无限递归
异常代码块,如下,删除即可:
private final String basePackage = "com.ab.controller";
@Bean
public Docket createRestApi() {
return new Docket(DocumentationType.SWAGGER_2).apiInfo(apiInfo())
.select().apis(RequestHandlerSelectors.basePackage(basePackage))
.paths(PathSelectors.any()).build();
}