jedis开发过程中遇到的问题及其解决方法

来源:互联网 发布:dbxpa处理器的软件 编辑:程序博客网 时间:2024/05/22 00:53

1、问题:

The constructor ShardedJedisPool(GenericObjectPool$Config, List<JedisShardInfo>) refers to the missing type GenericObjectPool$Config

原因:缺少commons-pool的jar包

解决办法:下载commons-pool的jar包并将其添加jedis的工程中,需要注意的是要用1.6版本或以前版本,1.6以后的版本就修改为了commons.pool2,

下载commons-pool的1.6版本jar包:

http://commons.apache.org/proper/commons-pool/download_pool.cgi

0 0