2021
04-07
04-07
java、spring、springboot中整合Redis的详细讲解
java整合Redis1、引入依赖或者导入jar包<dependency><groupId>redis.clients</groupId><artifactId>jedis</artifactId><version>2.9.0</version></dependency>2、代码实现publicclassJedisTest{publicstaticvoidmain(String[]args){//连接redis//Jedisjedis=newJedis("192.168.65.128",6379);//使用Jedis连接池Jedisjedis=getJedis();//操作redisjedis.set("name","小白");jedis.set("age","19");S...
继续阅读 >