无法解析com.google.common.base.Predicate类型。从所需的.class文件间接引用它

时间:2019-07-10 09:22:18

标签: swagger

我在春季执行我的项目,但是在运行代码时SwaggerConfiguration.java给出了错误

@Configuration
@EnableSwagger2
public class SwaggerConfiguration {

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


This is showing error like
"The type com.google.common.base.Predicate cannot be resolved. It is indirectly referenced from required .class files"
please help me to solve this error...
Thank you in advance

0 个答案:

没有答案