1.application.properties配置文件添加配置:
2.从配置中获取参数值:
3.创建jedisCluster连接redis集群:
5.注入jedisCluster
redis集群学习
原文:https://www.cnblogs.com/Mr-xt/p/9914795.html