Cómo configurar redis-cluster cuando se usa spring-data-redis 1.7.0.M1

Uso spring-data-redis versión 1.7.0.M1 y jedis versión 2.8.0 Aquí está mi configuración

<bean id="redisTemplate" class="org.springframework.data.redis.core.RedisTemplate">
    <property name="connectionFactory" ref="redisConnectionFactory"></property>
    <property name="keySerializer">
        <bean class="org.springframework.data.redis.serializer.StringRedisSerializer"/>
    </property>
    <property name="hashKeySerializer">
        <bean class="org.springframework.data.redis.serializer.StringRedisSerializer"/>
    </property>
    <property name="valueSerializer">
        <bean class="org.springframework.data.redis.serializer.StringRedisSerializer"/>
    </property>
    <property name="hashValueSerializer">
        <bean class="org.springframework.data.redis.serializer.JdkSerializationRedisSerializer"/>
    </property>
</bean>

y use 【redisTemplate.opsForValue (). get ("foo")】 para probar

lanzar la excepción

 org.springframework.dao.InvalidDataAccessApiUsageException: MOVED 12182 192.168.1.223:7002; nested exception is redis.clients.jedis.exceptions.JedisMovedDataException: MOVED 12182 192.168.1.223:7002

¿Cómo configurar redis-cluster cuando uso spring-data-redis 1.7.0.M1?

Respuestas a la pregunta(1)

Su respuesta a la pregunta