在导入与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项目中GenericObjectPoolConfig错误
本文解决了一个常见的Redis项目导入问题:Thetypeorg.apache.commons.pool2.impl.GenericObjectPoolConfigcannotberesolved. 错误提示表明缺少必要的包。通过添加Apache Commons Pool2依赖项可以轻松解决此问题。
1万+

被折叠的 条评论
为什么被折叠?



