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

The type org.apache.commons.pool.impl.GenericObjectPool$Config cannot be resolved. It is indirectly

时间:2016-07-07 19:18:35      阅读:208      评论:0      收藏:0      [点我收藏+]

标签:

static {
        try {
            JedisPoolConfig config = new JedisPoolConfig();
            config.setMaxActive(MAX_ACTIVE);
            config.setMaxIdle(MAX_IDLE);
            config.setMaxWait(MAX_WAIT);
            config.setTestOnBorrow(TEST_ON_BORROW);
            jedisPool = new JedisPool(config, ADDR, PORT, TIMEOUT, AUTH);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

config.setMaxWait(MAX_WAIT);

jedisPool = new JedisPool(config, ADDR, PORT, TIMEOUT, AUTH);

这俩行报错:The type org.apache.commons.pool.impl.GenericObjectPool$Config cannot be resolved. It is indirectly ...

加上commons-pool.jar 即可

 

The type org.apache.commons.pool.impl.GenericObjectPool$Config cannot be resolved. It is indirectly

标签:

原文地址:http://www.cnblogs.com/xxdfly/p/5651074.html

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