直接在java类里面调用Jedisjedis=newJedis("localhost"); 就好好地
一旦放到servlet 里面就出现这样的问题
threw exception [Servlet execution threw an exception] with root cause
java.lang.ClassNotFoundException: redis.clients.jedis.Jedis
还是老问题,jedis-2.1.0.jar 和 commons-pool-1.6.jar 要放到lib目录,新手确实很容易犯,放到lib目录就好了