1.application.properties配置文件添加配置:
2.从配置中获取参数值:
3.创建jedisCluster连接redis集群:
5.注入jedisCluster
posted on 2018-11-06 13:37 Mr-xt 阅读(59) 评论(0) 编辑 收藏 举报