部署

下载 Jedis

浏览器打开:http://search.maven.org/ ,搜索 jedis。在 Download 处,点击 jar

部署

 

下载 Commons-Pool

 

Jedis 对象并不是线程安全的,在多线程下使用同一个 Jedis 对象会出现并发问题。为了避免每次使用 Jedis 对象时都需要重新构建,Jedis 提供了 JedisPool。JedisPool 是基于Commons Pool 2 实现的一个线程安全的连接池

 

浏览器打开:http://search.maven.org/ ,搜索 commons-pool2。在 Download 处,点击 jar

部署