How to config redis-cluster when use spring-data-redis 1.7.0.M1
<p>I use spring-data-redis version 1.7.0.M1,and jedis version 2.8.0
Here is my configuration</p>

<p>
        
        
        
        
    
    
        
        
        
        
    </p>

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

<p>and use 【redisTemplate.opsForValue().get("foo")】 to test</p>

<p>throw the exception</p>

<pre><code> 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
</code></pre>

<p>How to config redis-cluster when use spring-data-redis 1.7.0.M1?</p>