[redis] The type org.apache.commons.pool2.impl.GenericObjectPoolConfig cannot be resolved.It is indi

Posted 冰糖雪梨喵喵

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[redis] The type org.apache.commons.pool2.impl.GenericObjectPoolConfig cannot be resolved.It is indi相关的知识,希望对你有一定的参考价值。

在导入与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>

 

  

 

以上是关于[redis] The type org.apache.commons.pool2.impl.GenericObjectPoolConfig cannot be resolved.It is indi的主要内容,如果未能解决你的问题,请参考以下文章

redis取值报错

No Spring Session store is configured: set the 'spring.session.store-type'

Redis学习记录

oracle数据库链接池的配置

The Weather

The method getContextPath() from the type HttpServletRequest refers to the missing type