[redis] The type org.apache.commons.pool2.impl.GenericObjectPoolConfig cannot be resolved.It is indirectly referenced from required .class files 报错解决方法

在导入与redis有关的项目时,经常报下面的错误:

The type org.apache.commons.pool2.impl.GenericObje1ctPoolConfig cannot be resolved.It is indirectly referenced from required .class files

经查,原来是缺少包,导入下面的包即可解决:

<dependency>
    <groupId>org.apache.commons</groupId>
    <artifactId>commons-pool2</artifactId>
    <version>2.4.2</version>
</dependency>

 

  

 

posted @ 2018-09-05 14:05  冰糖雪梨喵喵  阅读(2260)  评论(0编辑  收藏  举报