[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

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


    org.apache.commons
    commons-pool2
    2.4.2

 

  

 

转载于:https://www.cnblogs.com/smdq/p/9591745.html

你可能感兴趣的:([redis] The type org.apache.commons.pool2.impl.GenericObjectPoolConfig cannot be resolved.It is indi...)