title: How to use jackson instead of JdkSerializationRedisSerializer in spring
body: <p>I'm using redis in one of my java apps and I'm serializing a list of objects to be stored in Redis. However, I noticed that using the RedisTemplate would use the JdkSerializationRedisSerializer. Instead, I'd like to use Jackson to serialize since I believe it is better for speed. How would I go about configuring my RedisTemplate to use Jackson instead?</p>
  
  <p>For clarification, this is how I'm configuring my RedisTemplate:</p>
  
  <pre><code>@Override
  protected RedisConfiguration getRedisConfiguration() {
      return redisConfiguration;
  }
  
  @Bean
  public RedisTemplate&lt;String, Object&gt; getRedisTemplate() {
      RedisTemplate&lt;String, Object&gt; template = new RedisTemplate&lt;&gt;();
      template.setConnectionFactory(jedisConnectionFactory());
      return template;
  }
  </code></pre>