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