核心代码段提供一个JedisConnectionFactory 根据配置来判断单点集群还是哨兵@Bean@ConditionalOnMissingBeanpublicJedisConnectionFactoryjedisConnectionFactory(){JedisConnectionFactoryfactory=null;String[]split=node.split(",");Set<HostAndPort>nodes=newLinkedHashSet<>();for(inti=0;i<split.length;i++){try{String[]split1=split[i].split(":");nodes.add(...
继续阅读 >