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 即可