标签:
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