码迷,mamicode.com
首页 > Web开发 > 详细

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

时间:2018-09-05 14:57:07      阅读:315      评论:0      收藏:0      [点我收藏+]

标签:gen   .class   http   red   pen   info   resolved   pac   cti   

在导入与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 indirectly referenced from required .class files 报错解决方法

标签:gen   .class   http   red   pen   info   resolved   pac   cti   

原文地址:https://www.cnblogs.com/smdq/p/9591745.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!