jedis的最新包下载地址 http://mvnrepository.com/artifact/redis.clients/jedis,我用的是redis2.4.2jar,同时还需要下载common-pool.jar
http://commons.apache.org/pool/download_pool.cgi. 部署完毕后如果代码出现
The type org.apache.commons.pool.impl.GenericObjectPool$Config cannot be resolved. It is indirectly referenced from required .class files 那么就检查一下jre或者commons-pool版本。commons-pool版本过低会引起这个问题,也耗费了我好几个小时才搞定。
java project用jedis链接redis
最新推荐文章于 2024-11-19 09:35:26 发布