springboot2 配置redis,RedisTemplate,RedisCache

springboot1.5的版本redis客戶端默認是jedis,2.0以上版本默認是lettucehtml 本文采用lettuce,就是把application.yml配置文件裏的jedis換成lettuce,java 1、pom.xmlweb <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.o
相關文章
相關標籤/搜索