我在春季执行我的项目,但是在运行代码时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