JedisPoolConfigconfig=newJedisPoolConfig();config.setMaxActive(100);config.setMaxIdle(20);config.setMaxWait(1000l);config.setTestOnBorrow(true); JedisPooljedisPool=newJedisPool(config,"localhost");JedisPooljedisPool=newJedisPool(config,"localhost");這句Eclipse總是報錯,鼠標(biāo)移到小紅叉上提示:Multiplemarkersatthisline -Thetypeorg.apache.commons.pool.impl.GenericObjectPool$Configcannotberesolved.Itisindirectlyreferencedfrom required.classfiles -TheconstructorJedisPool(GenericObjectPool$Config,String)referstothemissingtypeGenericObjectPool$Configjedis.jar的版本是2.1.0
redis java客戶端不能創(chuàng)建JedisPool
溫溫醬
2019-03-29 10:55:58