JsonRedisTemplate extends RedisTemplate<Object, Object> { public JsonRedisTemplate(RedisConnectionFactory connectionFactory) { this(); setConnectionFactory(connectionFactory); afterPropertiesSet(); } JsonRedisTemplate(RedisConnectionFactory connectionFactory);  JsonRedisTemplate();   }
@Test public void testJsonRedisTemplate(){ String key = "test:data"; BoundValueOperations<Object, Object> ops = (BoundValueOperations<Object, Object>)jsonRedisTemplate.boundValueOps(key); JsonData data = new JsonData(); data.setAge(111); data.setName("testName"); ops.set(data); JsonData data2 = (JsonData)ops.get(); assertThat(data2).isEqualTo(data); jsonRedisTemplate.delete(key); }